<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIMenuElement/Attributes/hidden",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@E@UIMenuElementAttributes@UIMenuElementAttributesHidden"
  },
  "title" : "hidden"
}
-->

# hidden

An attribute indicating the hidden style.

```
static var hidden: UIMenuElement.Attributes { get }
```

## Discussion

When you use this attribute, the menu system doesn’t display the menu element. However, if the menu element is a [`UIKeyCommand`](/documentation/UIKit/UIKeyCommand) object, the user can still select it using the keyboard shortcut specified by the key command object.

---

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)