backItem
The navigation item that is immediately below the topmost item on a navigation bar’s stack.
Declaration
var backItem: UINavigationItem? { get }Discussion
If the leftBarButtonItem property of the topmost navigation item is nil, the navigation bar displays a back button whose title is derived from the item in this property.
If there is only one item on the navigation bar’s stack, the value of this property is nil.