One Logo Pool Ball
RealityFoundation · IOS API REFERENCE

AnimationDefinition

protocol · iOS 15.0+ · SDK 27.1

protocol AnimationDefinition

The configuration, including target object, timeframe, and visual semantics, of an animation. The framework adopts this protocol for several concrete animation objects, such as ``FromToByAnimation``, ``SampledAnimation``, ``OrbitAnimation``, ``BlendTreeAnimation``, ``AnimationView``, and ``AnimationGroup``.

Members (4)

method · iOS 15.0+

repeatingForever

Swift declaration
func repeatingForever() -> Self

Repeats the animation infinitely. - Returns: A version of the calling animation that will repeat infinitely.

method · iOS 15.0+

trimmed

Swift declaration
func trimmed(start: TimeInterval? = nil, end: TimeInterval? = nil, duration: TimeInterval? = nil) -> Self

Edits the animation duration according to the specified time. If an argument property lies outside the underlying ``AnimationDefinition/duration``, the animation plays back according to the characteristics of its ``AnimationDefinition/repeatMode``. - Parameters: - start: The time within the underlying duration to begin playback. - end: The time within the underlying duration to end playback. - duration: The amount of time that overrides the underlying duration. - Returns: A version of the animation shortened or lengthened according to the specified times.

method · iOS 15.0+

repeated

Swift declaration
func repeated(count: TimeInterval) -> Self

Repeats an animation the number of times specified by an irrational number. - Parameters: - count: The number of times the animation repeats before stopping. - Returns: A version of the calling animation repeated the given number of times.

method · iOS 15.0+

repeated

Swift declaration
func repeated(count: Int) -> Self

Repeats an animation the number of times specified by a whole number. - Parameters: - count: The number of times the animation repeats before stopping. - Returns: A version of the calling animation repeated the given number of times.

Skipped declarations

No declarations were skipped in this snapshot.

All RealityFoundation types →