Contents

stop()

Stops an animation.

Declaration

@MainActor @preconcurrency func stop()

Discussion

This method has no effect if the animation is complete. After you stop the animation, the playback controller becomes invalid. Create a new one with the same resource to play the animation again.

See Also

Inspecting and controlling playback