Contents

duration

The total playback time of the animation.

Declaration

var duration: TimeInterval { get set }

Discussion

The framework sets a value for this property depending on the underlying animation data and the specified speed.

You can override the default duration by defining trimStart, trimEnd, or trimDuration.

See Also

Timing the animation