<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/AnimationRepeatMode",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation19AnimationRepeatModeO"
  },
  "title" : "AnimationRepeatMode"
}
-->

# AnimationRepeatMode

Options that determine whether an animation replays after completion.

```
enum AnimationRepeatMode
```

## Overview

Adopters of [`AnimationDefinition`](/documentation/RealityKit/AnimationDefinition), such as [`SampledAnimation`](/documentation/RealityKit/SampledAnimation), offer
repeat options of this type through the [`repeatMode`](/documentation/RealityKit/SampledAnimation/repeatMode)
property.

To select a behavior, set the repeat mode as you configure your animation,
as in the following example:

```swift
let clip = FromToByAnimation<Transform>()
clip.repeatMode = .repeat
```

## Topics

### Choosing a repeat mode

[`case `repeat``](/documentation/RealityKit/AnimationRepeatMode/repeat)

A mode that restarts the animation after it completes.

[`case cumulative`](/documentation/RealityKit/AnimationRepeatMode/cumulative)

A mode that repeats indefinitely and begins each repetition by setting
the animated property to the ending value of the previous repetition.

[`case autoReverse`](/documentation/RealityKit/AnimationRepeatMode/autoReverse)

A mode that reverses the animation after reaching the end or the
beginning.

[`case none`](/documentation/RealityKit/AnimationRepeatMode/none)

An option that determines the animation doesn’t repeat.

### Comparing repeat modes

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)