AnimationPlaybackController
A controller that manages animation playback.
Declaration
@MainActor @preconcurrency class AnimationPlaybackControllerOverview
This class controls the playback of an entity animation by providing its pause, resume, or stop functions.
The animation starts immediately after you call playAnimation(_:transitionDuration:startsPaused:), or Entity/move(to:relativeTo:duration:timingFunction:)-905k, which both return an instance of this class.
A controller invalidates after its associated animation completes or stops. To play another animation, perform an action that generates another controller.
While an animation plays, you can receive notification of particular playback states by subscribing to an event. For more information, see AnimationEvents.