Contents

speed

A factor that increases or decreases the animation’s rate of playback.

Declaration

var speed: Float { get set }

Discussion

The default value is 1.0, which doesn’t alter the animation’s rate of playback. A value of 2.0 plays the animation at twice the normal rate, and a speed of 0.5 makes the animation finish after twice the normal time. A negative value plays the animation in reverse.

This property doesn’t affect the animation’s delay.

See Also

Timing the animation