Instance Method

startAnimation(afterDelay:)

Required.

Starts the animation after the specified delay.

Declaration

func startAnimation(afterDelay delay: TimeInterval)

Parameters

delay

The amount of time (in seconds) to wait before starting the animation.

Discussion

Call this method to start the animations or to resume a set of paused animations after the specified time delay. This method sets the state of the animator to active, if it is not already there. It is a programmer error to call this method while the state of the animator is set to stopped.

When implementing a custom animator, use this method to transition your animator to the active state and to run the animations after the specified delay. Run your animations from the progress point in the fractionComplete property. Update the state and isRunning properties, as well as any other relevant properties of your custom animator object.