---
title: hidesSharedBackground
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uibarbuttonitem/hidessharedbackground
---

# hidesSharedBackground

A boolean value indicating whether the background this item may share with other items in the bar should be hidden.

## Declaration

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

## Discussion

Discussion Set this property to YES to prevent the standard shared background (typically using the Glass effect) from being drawn behind this bar button item. This item will not be visually grouped with any other items, without the standard shared background. This property is ignored if the item is in a UIBarButtonItemGroup with more than one item. The default value is NO.

## See Also

### Customizing placement in a toolbar

- [sharesBackground](uikit/uibarbuttonitem/sharesbackground.md)
