ReplaceNavigationTransition
open class ReplaceNavigationTransition : BaseTransition, ViewTransition
Class, that encapsulates UINavigationController.setViewControllers(_:animated:) method call as a transition.
-
Behavior of
See moreReplaceNavigationTransition.Declaration
Swift
public enum Behavior -
Transition type .show
Declaration
Swift
public let transitionType: TransitionType -
Behavior of replace navigation transition to perform
Declaration
Swift
public let behavior: Behavior -
Creates
ReplaceNavigationTransitionwith specifiedbehavior.Declaration
Swift
public init(_ behavior: Behavior = .replaceLast, finder: ViewFinder? = nil, isAnimated: Bool = true)Parameters
behaviorBehavior of replace navigation transition
finderObject responsible for finding currently visible view in view hierarchy. Defaults to nil.
isAnimatedShould the transition be animated. Defaults to true.
-
Performs transition by calling
setViewControllers(_:animated:)on visible navigation controllerDeclaration
Swift
open func perform(with view: ViewController?, on visibleView: ViewController?, completion: ((Bool) -> Void)?)Parameters
viewcurrently visible view
visibleViewcurrently visible view in view hierarchy
completioncalled once transition has been completed
View on GitHub
Install in Dash
ReplaceNavigationTransition Class Reference