---
title: AnimationRepeatMode.repeat
framework: realitykit
role: symbol
role_heading: Case
path: realitykit/animationrepeatmode/repeat
---

# AnimationRepeatMode.repeat

A mode that restarts the animation after it completes.

## Declaration

```swift
case `repeat`
```

## Discussion

Discussion This mode restores the animated property to its initial value each time it restarts. For example, a FromToByAnimation with fromValue = 1.0, toValue = 2.0 and repeatMode set to this property repeats as, 1.0, 2.0, 1.0, 2.0, 1.0, 2.0 and so on.

## See Also

### Choosing a repeat mode

- [AnimationRepeatMode.cumulative](realitykit/animationrepeatmode/cumulative.md)
- [AnimationRepeatMode.autoReverse](realitykit/animationrepeatmode/autoreverse.md)
- [AnimationRepeatMode.none](realitykit/animationrepeatmode/none.md)
