Instance Property

topViewController

The view controller at the top of the navigation stack.

Declaration

var topViewController: UIViewController? { get }

See Also

Accessing Items on the Navigation Stack

var visibleViewController: UIViewController?

The view controller associated with the currently visible view in the navigation interface.

var viewControllers: [UIViewController]

The view controllers currently on the navigation stack.

func setViewControllers([UIViewController], animated: Bool)

Replaces the view controllers currently managed by the navigation controller with the specified items.