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

# toolbar

The custom toolbar associated with the navigation controller.

```
var toolbar: UIToolbar! { get }
```

## Discussion

This property contains a reference to the built-in toolbar managed by the navigation controller. Access to this toolbar is provided solely for clients that want to present an action sheet from the toolbar. You should not modify the [`UIToolbar`](/documentation/UIKit/UIToolbar) object directly.

Management of this toolbar’s contents is done through the custom view controllers associated with this navigation controller. For each view controller on the navigation stack, you can assign a custom set of toolbar items using the [`setToolbarItems(_:animated:)`](/documentation/UIKit/UIViewController/setToolbarItems(_:animated:)) method of [`UIViewController`](/documentation/UIKit/UIViewController).

The visibility of this toolbar is controlled by the [`isToolbarHidden`](/documentation/UIKit/UINavigationController/isToolbarHidden) property. The toolbar also obeys the [`hidesBottomBarWhenPushed`](/documentation/UIKit/UIViewController/hidesBottomBarWhenPushed) property of the currently visible view controller and hides and shows itself automatically as needed.

---

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)