originalTarget
TypeScriptget originalTarget(): _SwiftUICore_ScrollTargetSwift declarationvar originalTarget: ScrollTarget { get }The original target when the scroll gesture began.
struct · iOS 17.0+ · SDK 27.1
@dynamicMemberLookup struct ScrollTargetBehaviorContextThe context in which a scroll target behavior updates its scroll target.
get originalTarget(): _SwiftUICore_ScrollTargetSwift declarationvar originalTarget: ScrollTarget { get }The original target when the scroll gesture began.
get contentSize(): { width: number; height: number }Swift declarationvar contentSize: CGSize { get }The size of the content of the scrollable view.
get containerSize(): { width: number; height: number }Swift declarationvar containerSize: CGSize { get }The size of the container of the scrollable view. This is the size of the bounds of the scroll view subtracting any insets applied to the scroll view (like the safe area).
subscript(keyPath: SDKHandle): unknownSwift declarationsubscript<T>(dynamicMember keyPath: KeyPath<EnvironmentValues, T>) -> T { get }get axes(): _SwiftUICore_Axis_SetSwift declarationvar axes: Axis.Set { get }The axes in which the scrollable view is scrollable.
get velocity(): { dx: number; dy: number }Swift declarationvar velocity: CGVector { get }The current velocity of the scrollable view's scroll gesture.
No declarations were skipped in this snapshot.