Instance Property


The navigation bar managed by the navigation controller.


var navigationBar: UINavigationBar { get }


It is permissible to customize the appearance of the navigation bar using the methods and properties of the UINavigationBar class but you must never change its frame, bounds, or alpha values or modify its view hierarchy directly. To show or hide the navigation bar, you should always do so through the navigation controller by changing its isNavigationBarHidden property or calling the setNavigationBarHidden(_:animated:) method.

See Also

Configuring Navigation Bars

func setNavigationBarHidden(Bool, animated: Bool)

Sets whether the navigation bar is hidden.