Contents

AnimationRepeatMode

Options that determine whether an animation replays after completion.

Declaration

enum AnimationRepeatMode

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

See Also

Animation playback