UINavigationController
extension UINavigationController: InspectableHierarchy
Conformance of UINavigationController
to InspectableHierarchy
protocol.
A UINavigation has an array of UIViewControllers
and an optional presentedViewController
.
-
Declaration
Swift
public var hierarchy: [UIViewController] { get }
-
Pushes a view controller onto the receiver’s stack, updates the display then executes a completion.
Declaration
Swift
public func pushViewController(_ viewController: UIViewController, animated: Bool, completion: (() -> Void)?)
Parameters
viewController
The view controller to push onto the stack. This object cannot be a tab bar controller. If the view controller is already on the navigation stack, this method throws an exception.
animated
Specify true to animate the transition or false if you do not want the transition to be animated. You might specify false if you are setting up the navigation controller at launch time.
completion
The completion to execute once the view controller is pushed to the stack.