One Logo Pool Ball
SwiftUI · IOS API REFERENCE

ScrollPhaseChangeContext

struct · iOS 18.0+ · SDK 27.1

struct ScrollPhaseChangeContext

A type that provides you with more content when the phase of a scroll view changes. You don't create this type directly. Instead, SwiftUI provides an instance of this type in the ``View/onScrollPhaseChange(_:)`` modifier.

Members (2)

get · iOS 18.0+

geometry

TypeScript
get geometry(): _SwiftUICore_ScrollGeometry
Swift declaration
var geometry: ScrollGeometry { get }

The geometry of the scroll view at the time of the scroll phase change.

get · iOS 18.0+

velocity

TypeScript
get velocity(): ({ dx: number; dy: number }) | null
Swift declaration
var velocity: CGVector? { get }

The velocity of the scroll view at the time of the scroll phase change.

Skipped declarations

No declarations were skipped in this snapshot.

All SwiftUI types →