---
title: toolbarItems
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiviewcontroller/toolbaritems
---

# toolbarItems

The toolbar items associated with the view controller.

## Declaration

```swift
var toolbarItems: [UIBarButtonItem]? { get set }
```

## Discussion

Discussion This property contains an array of UIBarButtonItem objects and works in conjunction with a UINavigationController object. If this view controller is embedded inside a navigation controller interface, and the navigation controller displays a toolbar, this property identifies the items to display in that toolbar. You can set the value of this property explicitly or use the setToolbarItems(_:animated:) method to animate changes to the visible set of toolbar items.

## See Also

### Configuring a navigation interface

- [navigationItem](uikit/uiviewcontroller/navigationitem.md)
- [hidesBottomBarWhenPushed](uikit/uiviewcontroller/hidesbottombarwhenpushed.md)
- [setToolbarItems(_:animated:)](uikit/uiviewcontroller/settoolbaritems(_:animated:).md)
