Contents

ScrollPhase.animating

The animating phase where the scroll view is animating towards a final target.

Declaration

case animating

Discussion

This phase is the result of a programmatic scroll when using a ScrollViewReader or scrollPosition(id:anchor:) modifier.

SwiftUI provides you a value of this type when using the onScrollPhaseChange(_:) modifier with a scrollable view like ScrollView or List.

See Also

Getting scroll gesture states