UINavigationController
extension UINavigationController
-
Pushes the given view controller and calls the given closure upon completion.
Declaration
Swift
public func push(_ viewController: UIViewController, animated: Bool = true, completion: (() -> Void)? = nil)Parameters
viewControllerThe view controller to push onto the stack.
animatedSpecify
trueto animate the transition orfalseif you do not want the transition to be animated.completionThe closure to be called upon completion.
-
Pops the top view controller and calls the given closure upon completion.
Declaration
Swift
public func pop(animated: Bool = true, completion: (() -> Void)? = nil)Parameters
animatedSpecify
trueto animate the transition orfalseif you do not want the transition to be animated.completionThe closure to be called upon completion.
View on GitHub
UINavigationController Extension Reference