Instance Method

continueAnimation(withTimingParameters:durationFactor:)

Adjusts the final timing and duration of a paused animation.

Declaration

optional func continueAnimation(withTimingParameters parameters: UITimingCurveProvider?, durationFactor: CGFloat)

Parameters

parameters

The new timing information to apply to the animation. Your custom animator determines how to transition from any current animations to the new animations specified by this parameter.

durationFactor

A multiplying factor to apply to the animation’s original duration. Multiply this value by your animation’s original duration value to obtain the new duration for the animations.

Discussion

Use this method to change the timing and duration parameters for the current animations temporarily. You define the conditions for which it is safe to call this method, but typically it is an error to call this method on an animator that is inactive, running, or not interruptible. You should retain the original timing and duration values and restore them when your animator transitions back to the inactive state.

See Also

Modifying Animations

func addAnimations(() -> Void)

Adds the specified animation block to the animator.

func addAnimations(() -> Void, delayFactor: CGFloat)

Adds the specified animation block to the animator with a delay.

func addCompletion((UIViewAnimatingPosition) -> Void)

Adds the specified completion block to the animator.