init(idType:edge:)
Creates a new scroll position to be scrolled to the provided edge.
Declaration
init(idType: (some Hashable & Sendable).Type = Never.self, edge: Edge)Discussion
You can provide a type to indicate the type of ID the scroll view should look for views with an ID of that type within its scroll target layout.