One Logo Pool Ball
SwiftUICore · IOS API REFERENCE

ScrollTarget

struct · iOS 17.0+ · SDK 27.1

struct ScrollTarget

A type defining the target in which a scroll view should try and scroll to.

Members (4)

get · iOS 17.0+

rect

TypeScript
get rect(): { x: number; y: number; width: number; height: number }
Swift declaration
var rect: CGRect

The rect that a scrollable view should try and have contained.

set · iOS 17.0+

rect

TypeScript
set rect(value: { x: number; y: number; width: number; height: number })
Swift declaration
var rect: CGRect

The rect that a scrollable view should try and have contained.

get · iOS 17.0+

anchor

TypeScript
get anchor(): (UnitPoint) | null
Swift declaration
var anchor: UnitPoint?

The anchor to which the rect should be aligned within the visible region of the scrollable view.

set · iOS 17.0+

anchor

TypeScript
set anchor(value: (UnitPoint) | null)
Swift declaration
var anchor: UnitPoint?

The anchor to which the rect should be aligned within the visible region of the scrollable view.

Skipped declarations

No declarations were skipped in this snapshot.

All SwiftUICore types →