<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UINavigationController/navigationBar",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UINavigationController(py)navigationBar"
  },
  "title" : "navigationBar"
}
-->

# navigationBar

The navigation bar managed by the navigation controller.

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

## Discussion

It is permissible to customize the appearance of the navigation bar using the methods and properties of the [`UINavigationBar`](/documentation/UIKit/UINavigationBar) class but you must never change its [`frame`](/documentation/UIKit/UIView/frame), [`bounds`](/documentation/UIKit/UIView/bounds), or [`alpha`](/documentation/UIKit/UIView/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`](/documentation/UIKit/UINavigationController/isNavigationBarHidden) property or calling the [`setNavigationBarHidden(_:animated:)`](/documentation/UIKit/UINavigationController/setNavigationBarHidden(_:animated:)) method.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)