Instance Method

interruptibleAnimator(using:)

Returns the interruptible animator to use during the transition.

Declaration

optional func interruptibleAnimator(using transitionContext: UIViewControllerContextTransitioning) -> UIViewImplicitlyAnimating

Parameters

transitionContext

The context object containing information to use during the transition.

Return Value

An animator object that supports the modification of its running animations.

Discussion

Implement this method when you want to perform your transitions using an interruptible animator object, such as a UIViewPropertyAnimator object. You must return the same animator object for the duration of the transition.