---
title: init()
framework: swiftui
role: symbol
role_heading: Initializer
path: swiftui/animationstate/init()
---

# init()

Create an empty state container.

## Declaration

```swift
init()
```

## Discussion

Discussion You don’t typically create an instance of AnimationState directly. Instead, the AnimationContext provides the animation state to an instance of CustomAnimation.
