---
title: ScrollPhase.animating
framework: swiftui
role: symbol
role_heading: Case
path: swiftui/scrollphase/animating
---

# ScrollPhase.animating

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

## Declaration

```swift
case animating
```

## Discussion

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

- [ScrollPhase.decelerating](swiftui/scrollphase/decelerating.md)
- [ScrollPhase.idle](swiftui/scrollphase/idle.md)
- [ScrollPhase.interacting](swiftui/scrollphase/interacting.md)
- [ScrollPhase.tracking](swiftui/scrollphase/tracking.md)
