Instance Property

visibleViewController

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

Declaration

var visibleViewController: UIViewController? { get }

Discussion

The currently visible view can belong either to the view controller at the top of the navigation stack or to a view controller that was presented modally on top of the navigation controller itself.

See Also

Accessing Items on the Navigation Stack

var topViewController: UIViewController?

The view controller at the top of the navigation stack.

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.