UINavigationController
public extension UINavigationController
-
Root view controller
Declaration
Swift
var rootViewController: UIViewController { get }
-
Pushes view controller animated
Declaration
Swift
func pushViewController(_ viewController: UIViewController)
-
Pops view controller animated
Declaration
Swift
func popViewController()
-
Pushes view controller with completion
Declaration
Swift
func pushViewController(_ viewController: UIViewController, animated: Bool, completion: (() -> Void)?)
-
Pops view controller with completion
Declaration
Swift
func popViewController(animated: Bool, completion: (() -> Void)?)
-
Pops to view controller with completion
Declaration
Swift
func popToViewController(viewController: UIViewController, animated: Bool, completion: (() -> Void)?)
-
Pops view controller if it present in navigation stack and all overlaying view controllers. Do nothing if view controller is not in navigation stack.
Declaration
Swift
func pop(viewController: UIViewController, animated: Bool, completion: (() -> Void)?)
-
Pops to root with completion
Declaration
Swift
func popToRootViewController(animated: Bool, completion: (() -> Void)?)
-
Replaces view controllers with completion
Declaration
Swift
func setViewControllers(_ vcs: [UIViewController], animated: Bool, completion: (() -> Void)?)
-
Replaces last view controller with completion
Declaration
Swift
func replaceLast(_ vc: UIViewController, animated: Bool, completion: (() -> Void)?)