---
title: AnimationRepeatMode
framework: realitykit
role: symbol
role_heading: Enumeration
path: realitykit/animationrepeatmode
---

# AnimationRepeatMode

Options that determine whether an animation replays after completion.

## Declaration

```swift
enum AnimationRepeatMode
```

## Overview

Overview Adopters of AnimationDefinition, such as SampledAnimation, offer repeat options of this type through the repeatMode property. To select a behavior, set the repeat mode as you configure your animation, as in the following example: let clip = FromToByAnimation<Transform>() clip.repeatMode = .repeat

## Topics

### Choosing a repeat mode

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

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [Hashable](swift/hashable.md)

## See Also

### Animation playback

- [Automatically animating RealityKit entities](realitykit/automatically-animating-realitykit-entities.md)
- [AnimationResource](realitykit/animationresource.md)
- [AnimationLibraryComponent](realitykit/animationlibrarycomponent.md)
- [AnimationLibraryComponent.AnimationCollection](realitykit/animationlibrarycomponent/animationcollection.md)
- [AnimationEvents](realitykit/animationevents.md)
- [AnimationPlaybackController](realitykit/animationplaybackcontroller.md)
