Instance Property

navigationBar

The navigation bar managed by the navigation controller.

Declaration

var navigationBar: UINavigationBar { get }

Discussion

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.