---
title: repeatMode
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/animationdefinition/repeatmode
---

# repeatMode

An option that determines how the animation repeats.

## Declaration

```swift
var repeatMode: AnimationRepeatMode { get set }
```

## Discussion

Discussion If you call trimmed(start:end:duration:) with a start or end that lies outside of the timeline defined by duration, the animation fills the additional playback by applying this property.

## See Also

### Repeating animation playback

- [fillMode](realitykit/animationdefinition/fillmode.md)
- [repeated(count:)](realitykit/animationdefinition/repeated(count:)-937w.md)
- [repeated(count:)](realitykit/animationdefinition/repeated(count:)-941x8.md)
- [repeatingForever()](realitykit/animationdefinition/repeatingforever().md)
