Contents

frameRate

The number of frame updates per second to generate for the animation.

Declaration

var frameRate: Float { get set }

Discussion

The value of this property must be greater than or equal to 0. Specifying a value of 0.0 causes the animation to run as fast as possible. Setting the property to a negative value raises an exception.

The frame rate is not guaranteed due to differences among systems for the time needed to process a frame. You can change the frame rate while an animation is running and the new value is used at the next frame. The default frame rate is set to a reasonable value (which is subject to future change).

See Also

Configuring an Animation