---
title: PhaseAnimator
framework: swiftui
role: symbol
role_heading: Structure
path: swiftui/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.

## Declaration

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

## Overview

Overview Use one of the phase animator view modifiers like phaseAnimator(_:content:animation:) to create a phased animation in your app.

## Topics

### Creating a phase animator

- [init(_:content:animation:)](swiftui/phaseanimator/init(_:content:animation:).md)
- [init(_:trigger:content:animation:)](swiftui/phaseanimator/init(_:trigger:content:animation:).md)

## Relationships

### Conforms To

- [View](swiftui/view.md)

## See Also

### Creating phase-based animation

- [Controlling the timing and movements of your animations](swiftui/controlling-the-timing-and-movements-of-your-animations.md)
- [phaseAnimator(_:content:animation:)](swiftui/view/phaseanimator(_:content:animation:).md)
- [phaseAnimator(_:trigger:content:animation:)](swiftui/view/phaseanimator(_:trigger:content:animation:).md)
