<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/PhaseAnimator",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI13PhaseAnimatorV"
  },
  "title" : "PhaseAnimator"
}
-->

# PhaseAnimator

A container that animates its content by automatically cycling through
a collection of phases that you provide, each defining a discrete step
within an animation.

```
nonisolated struct PhaseAnimator<Phase, Content> where Phase : Equatable, Content : View
```

## Overview

Use one of the phase animator view modifiers like
[`phaseAnimator(_:content:animation:)`](/documentation/SwiftUI/View/phaseAnimator(_:content:animation:)) to create a phased animation
in your app.

## Topics

### Creating a phase animator

[`init(_:content:animation:)`](/documentation/SwiftUI/PhaseAnimator/init(_:content:animation:))

Cycles through a sequence of phases continuously, animating updates to
a view on each phase change.

[`init(_:trigger:content:animation:)`](/documentation/SwiftUI/PhaseAnimator/init(_:trigger:content:animation:))

Cycles through a sequence of phases in response to changes in a
specified value, animating updates to a view on each phase change.

## Relationships

### Conforms To

[`View`](/documentation/SwiftUI/View)

---

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)