---
title: barButtonItems
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uibarbuttonitemgroup/barbuttonitems
---

# barButtonItems

The bar button items to display on the bar.

## Declaration

```swift
var barButtonItems: [UIBarButtonItem] { get set }
```

## Discussion

Discussion You may include any number of bar button items in a group, but you should keep the total number of items relatively small because of space considerations. The items in a group are typically related to each other, but need not be. The array must contain at least one item. Items can belong to only one group at a time. If you specify an item that’s already in a group, UIKit removes the item from its previous group before assigning it to the current group.

## See Also

### Configuring the group

- [representativeItem](uikit/uibarbuttonitemgroup/representativeitem.md)
- [alwaysAvailable](uikit/uibarbuttonitemgroup/alwaysavailable.md)
