Instance Property

topItem

The navigation item at the top of the navigation bar’s stack.

Declaration

var topItem: UINavigationItem? { get }

See Also

Pushing and Popping Items

func pushItem(UINavigationItem, animated: Bool)

Pushes the given navigation item onto the navigation bar's stack and updates the UI.

func popItem(animated: Bool) -> UINavigationItem?

Pops the top item from the navigation bar's stack and updates the UI.

func setItems([UINavigationItem]?, animated: Bool)

Replaces the navigation items currently managed by the navigation bar with the specified items.

var items: [UINavigationItem]?

An array of navigation items managed by the navigation bar.

var backItem: UINavigationItem?

The navigation item that is immediately below the topmost item on navigation bar’s stack.