<!--
{
  "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/State",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@E@UIMenuElementState"
  },
  "title" : "UIMenuElement.State"
}
-->

# UIMenuElement.State

Constants that indicate the state of an action- or command-based menu element.

```
enum State
```

## Topics

### States

[`UIMenuElement.State.off`](/documentation/UIKit/UIMenuElement/State/off)

A constant indicating the menu element is in the “off” state.

[`UIMenuElement.State.on`](/documentation/UIKit/UIMenuElement/State/on)

A constant indicating the menu element is in the “on” state.

[`UIMenuElement.State.mixed`](/documentation/UIKit/UIMenuElement/State/mixed)

A constant indicating the menu element is in the “mixed” state.



---

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)