SwiftstructSwiftUICore
ScrollPosition
struct SwiftUI.ScrollPosition
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
- protocolSwift.Equatable
Members 26
- field
var idType: Hashable.Type - field
var seed: UInt - field
var storage: SwiftUI.ScrollPosition.Storage+0x0 - func
matches<A where A: Hashable>(id: A) -> Bool - func
scrollTo(x: CoreGraphics.CGFloat, y: CoreGraphics.CGFloat) -> () - func
scrollTo(x: CoreGraphics.CGFloat) -> () - func
scrollTo(y: CoreGraphics.CGFloat) -> () - func
scrollTo<A where A: Hashable, A: Sendable>(id: A, anchor: SwiftUI.UnitPoint?) -> () - func
scrollTo(edge: SwiftUI.Edge) -> () - func
scrollTo(point: CGPoint) -> () - func
viewID<A where A: Hashable, A: Sendable>(type: A.Type) -> A? - func
wantsUpdate(toPosition: SwiftUI.ScrollPosition) -> Bool - init
init<A where A: Hashable, A: Sendable>(id: A, anchor: SwiftUI.UnitPoint?) -> SwiftUI.ScrollPosition - init
init<A where A: Hashable, A: Sendable>(idType: A.Type, x: CoreGraphics.CGFloat, y: CoreGraphics.CGFloat) -> SwiftUI.ScrollPosition - init
init<A where A: Hashable, A: Sendable>(idType: A.Type, x: CoreGraphics.CGFloat) -> SwiftUI.ScrollPosition - init
init<A where A: Hashable, A: Sendable>(idType: A.Type, y: CoreGraphics.CGFloat) -> SwiftUI.ScrollPosition - init
init<A where A: Hashable, A: Sendable>(idType: A.Type, edge: SwiftUI.Edge) -> SwiftUI.ScrollPosition - init
init<A where A: Hashable, A: Sendable>(idType: A.Type, point: CGPoint) -> SwiftUI.ScrollPosition - init
init<A where A: Hashable, A: Sendable>(idType: A.Type, storage: SwiftUI.ScrollPosition.Storage) -> SwiftUI.ScrollPosition - init
init<A where A: Hashable, A: Sendable>(idType: A.Type) -> SwiftUI.ScrollPosition - var
var edge: SwiftUI.Edge? { get } - var
var isPositionedByUser: Bool { get set } - var
var point: CGPoint? { get } - var
var viewID: (Hashable & Sendable)? { get } - var
var x: CoreGraphics.CGFloat? { get } - var
var y: CoreGraphics.CGFloat? { get }
Header
struct ScrollPosition { enum Storage { case viewID(SwiftUI.ScrollPosition.ViewID) case edge(SwiftUI.Edge) case point(__C.CGPoint) case x(CoreGraphics.CGFloat) case y(CoreGraphics.CGFloat) case automatic case positionedByUser } struct ViewID { var id: any Swift.Hashable var anchor: SwiftUI.UnitPoint? } var storage: SwiftUI.ScrollPosition.Storage var idType: any Swift.Hashable.Type var seed: Swift.UInt init<A>(id: A, anchor: SwiftUI.UnitPoint?) where A: Swift.Hashable, A: Swift.Sendable init<A>(idType: A.Type, x: CoreGraphics.CGFloat, y: CoreGraphics.CGFloat) where A: Swift.Hashable, A: Swift.Sendable init<A>(idType: A.Type, x: CoreGraphics.CGFloat) where A: Swift.Hashable, A: Swift.Sendable init<A>(idType: A.Type, y: CoreGraphics.CGFloat) where A: Swift.Hashable, A: Swift.Sendable init<A>(idType: A.Type, edge: SwiftUI.Edge) where A: Swift.Hashable, A: Swift.Sendable init<A>(idType: A.Type, point: __C.CGPoint) where A: Swift.Hashable, A: Swift.Sendable init<A>(idType: A.Type, storage: SwiftUI.ScrollPosition.Storage) where A: Swift.Hashable, A: Swift.Sendable init<A>(idType: A.Type) where A: Swift.Hashable, A: Swift.Sendable var edge: SwiftUI.Edge? { get } var isPositionedByUser: Swift.Bool { get set } var point: __C.CGPoint? { get } var viewID: (any Swift.Hashable & Swift.Sendable)? { get } var x: CoreGraphics.CGFloat? { get } var y: CoreGraphics.CGFloat? { get } func wantsUpdate(toPosition: SwiftUI.ScrollPosition) -> Swift.Bool func viewID<A>(type: A.Type) -> A? where A: Swift.Hashable, A: Swift.Sendable func matches<A>(id: A) -> Swift.Bool where A: Swift.Hashable func scrollTo(x: CoreGraphics.CGFloat, y: CoreGraphics.CGFloat) func scrollTo(x: CoreGraphics.CGFloat) func scrollTo(y: CoreGraphics.CGFloat) func scrollTo<A>(id: A, anchor: SwiftUI.UnitPoint?) where A: Swift.Hashable, A: Swift.Sendable func scrollTo(edge: SwiftUI.Edge) func scrollTo(point: __C.CGPoint) }