<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/ScrollPhase/animating",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI11ScrollPhaseO9animatingyA2CmF"
  },
  "title" : "ScrollPhase.animating"
}
-->

# ScrollPhase.animating

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

```
case animating
```

## Discussion

This phase is the result of a programmatic
scroll when using a [`ScrollViewReader`](/documentation/SwiftUI/ScrollViewReader) or
[`scrollPosition(id:anchor:)`](/documentation/SwiftUI/View/scrollPosition(id:anchor:)) modifier.

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)