---
title: navigationBar
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uinavigationcontroller/navigationbar
---

# navigationBar

The navigation bar managed by the navigation controller.

## Declaration

```swift
var navigationBar: UINavigationBar { get }
```

## Discussion

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

- [setNavigationBarHidden(_:animated:)](uikit/uinavigationcontroller/setnavigationbarhidden(_:animated:).md)
- [Customizing your app’s navigation bar](uikit/customizing-your-app-s-navigation-bar.md)
