TransitionAnimation

public protocol TransitionAnimation : UIViewControllerAnimatedTransitioning

TransitionAnimation aims to provide a common protocol for any type of transition animation used in an Animation object.

XCoordinator provides different implementations of this protocol with the StaticTransitionAnimation, InteractiveTransitionAnimation and InterruptibleTransitionAnimation classes.

  • The interaction controller of an animation. It gets notified about the state of an animation and handles the specific events accordingly.

    The interaction controller is reset when calling TransitionAnimation.start() can always be nil, e.g. in static transition animations.

    Until TransitionAnimation.cleanup() is called, it should always return the same instance.

    Declaration

    Swift

    var interactionController: PercentDrivenInteractionController? { get }
  • Starts the animation by possibly creating a new interaction controller.

    Declaration

    Swift

    func start()
  • Cleans up a TransitionAnimation after an animation has been completed, e.g. by deleting an interaction controller.

    Declaration

    Swift

    func cleanup()