PresentationTransition

open class PresentationTransition : BaseTransition, ViewTransition

Class, that encapsulates UIViewController.present(_:animated:) method call as a transition.

  • Transition type .show

    Declaration

    Swift

    public let transitionType: TransitionType
  • Performs transition by calling present(_:animated:) on visibleView with view argument.

    Declaration

    Swift

    public func perform(with view: ViewController?, on visibleView: ViewController?, completion: ((Bool) -> Void)?)

    Parameters

    view

    view that is being presented.

    visibleView

    visible view, on which presentation will being performed.

    completion

    called once presentation has been completed.