<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIBarButtonItem/hidesSharedBackground",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIBarButtonItem(py)hidesSharedBackground"
  },
  "title" : "hidesSharedBackground"
}
-->

# hidesSharedBackground

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

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

## 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`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)