Instance Method


Sets whether the back button is hidden, optionally animating the transition.


func setHidesBackButton(_ hidesBackButton: Bool, animated: Bool)



Specify true if the back button should be hidden when this navigation item is the top item. Specify false if the back button should be visible, assuming it has not been replaced by a custom item.


true to animate the transition; otherwise, false.

See Also

Getting and Setting Properties

var prompt: String?

A single line of text displayed at the top of the navigation bar.

var backBarButtonItem: UIBarButtonItem?

The bar button item to use when a back button is needed on the navigation bar.

var hidesBackButton: Bool

A Boolean value that determines whether the back button is hidden.

var leftItemsSupplementBackButton: Bool

A Boolean value indicating whether the left items are displayed in addition to the back button.