---
title: duration
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/animationgroup/duration
---

# duration

The total playback time of the animation.

## Declaration

```swift
var duration: TimeInterval { get }
```

## Discussion

Discussion The framework sets a value for this property depending on the underlying animation data and the specified speed. You can override the default duration by defining trimStart, trimEnd, or trimDuration.

## See Also

### Timing the group

- [speed](realitykit/animationgroup/speed.md)
- [delay](realitykit/animationgroup/delay.md)
- [offset](realitykit/animationgroup/offset.md)
- [trimDuration](realitykit/animationgroup/trimduration.md)
- [trimStart](realitykit/animationgroup/trimstart.md)
- [trimEnd](realitykit/animationgroup/trimend.md)
