init(idType:)
Creates a new automatic scroll position.
Declaration
init(idType: (some Hashable & Sendable).Type = Never.self)Discussion
You can provide a type to the scroll position. This type should match the type of IDs associated to views in a scroll target layout. The scroll view will look for those views to update the value of the scroll position with.