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

# duration

The elapsed time for one complete rotation.

## 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 AnimationAction/speed. You can override the default duration by defining AnimationAction/trimStart, AnimationAction/trimEnd, or AnimationAction/trimDuration.
