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

# duration

The elapsed time for one complete rotation.

## Declaration

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

## 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 animation

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