rect
TypeScriptget rect(): { x: number; y: number; width: number; height: number }Swift declarationvar rect: CGRectThe rect that a scrollable view should try and have contained.
struct · iOS 17.0+ · SDK 27.1
struct ScrollTargetA type defining the target in which a scroll view should try and scroll to.
get rect(): { x: number; y: number; width: number; height: number }Swift declarationvar rect: CGRectThe rect that a scrollable view should try and have contained.
set rect(value: { x: number; y: number; width: number; height: number })Swift declarationvar rect: CGRectThe rect that a scrollable view should try and have contained.
get anchor(): (UnitPoint) | nullSwift declarationvar anchor: UnitPoint?The anchor to which the rect should be aligned within the visible region of the scrollable view.
set anchor(value: (UnitPoint) | null)Swift declarationvar anchor: UnitPoint?The anchor to which the rect should be aligned within the visible region of the scrollable view.
No declarations were skipped in this snapshot.