---
title: buttonGroup
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uibarbuttonitem/buttongroup
---

# buttonGroup

The group that the button belongs to.

## Declaration

```swift
weak var buttonGroup: UIBarButtonItemGroup? { get }
```

## Discussion

Discussion This property contains the group to which the item belongs. This property is configured automatically when you add the bar button item to a UIBarButtonItemGroup object. If the item isn’t associated with a bar button item group, this property is nil.
