---
title: animatableData
framework: swiftui
role: symbol
role_heading: Instance Property
path: swiftui/animatable/animatabledata-6nydg
---

# animatableData

The data to animate.

## Declaration

```swift
var animatableData: Self.AnimatableData { get set }
```

## Discussion

Discussion SwiftUI reads this property to capture the current vector representation of the animatable state, and writes it back on each animation frame with an interpolated value. The default implementation returns EmptyAnimatableData, meaning nothing is animated. Use the Animatable() macro to synthesize this property automatically. Implement it by hand only when you need custom interpolation logic such as clamping, normalization, or mapping to a derived value.

## See Also

### Animating data

- [Animatable()](swiftui/animatable().md)
- [AnimatableIgnored()](swiftui/animatableignored().md)
- [AnimatableData](swiftui/animatable/animatabledata-swift.associatedtype.md)
