PopNavigationTransition
open class PopNavigationTransition : BaseTransition, ViewTransition
Class, that encapsulates UINavigationController.popViewController(_:animated:) method call as a transition.
-
Kind of pop navigation transition to perform
See moreDeclaration
Swift
public enum Behavior
-
Transition type .hide.
Declaration
Swift
public let transitionType: TransitionType
-
Behavior of pop navigation transition to perform
Declaration
Swift
public let behavior: Behavior
-
Creates
PopNavigationTransition
with specifiedbehavior
.Declaration
Swift
public init(_ behavior: Behavior = .pop, finder: ViewFinder? = nil, isAnimated: Bool = true)
Parameters
behavior
Behavior of pop navigation transition
finder
Object responsible for finding currently visible view in view hierarchy. Defaults to nil.
isAnimated
Should the transition be animated. Defaults to true.
-
Performs transition by calling
popViewController(_:animated:)
onvisibleView
navigation controller.Declaration
Swift
open func perform(with view: ViewController?, on visibleView: ViewController?, completion: ((Bool) -> Void)?)
Parameters
view
currently visible view
visibleView
currently visible view in view hierarchy
completion
called once transition has been completed