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

# repeatMode

An option that determines how the animation repeats.

## Declaration

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

## Discussion

Discussion If you call FromToByAnimation/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/fromtobyanimation/fillmode.md)
