---
title: sharesBackground
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uibarbuttonitem/sharesbackground
---

# sharesBackground

A boolean value indicating whether this bar button item can share a background with other items in a navigation bar or a toolbar.

## Declaration

```swift
var sharesBackground: Bool { get set }
```

## Discussion

Discussion When NO, This item will not be visually grouped with any other items. This property is ignored if the item is in a UIBarButtonItemGroup with more than one item. The default value is YES.

## See Also

### Customizing placement in a toolbar

- [hidesSharedBackground](uikit/uibarbuttonitem/hidessharedbackground.md)
