Contents

contentVisibleFrame

The visible area of content in the scroll view.

Declaration

@MainActor @preconcurrency var contentVisibleFrame: CGRect { get set }

Discussion

Modifying this property immediately moves the canvas, to animate changing the visible rect use setContentVisibleFrame(_:animated:).

See Also

Scrolling and zooming