Enumeration

UIMenuElement.State

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

Declaration

enum State : Int

Topics

States

case off

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

case on

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

case mixed

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

See Also

Menu Elements and Keyboard Shortcuts

Adding Menus and Shortcuts to the Menu Bar and User Interface

Provide quick access to useful actions by adding menus and keyboard shortcuts to your Mac Catalyst app.

class UIMenuElement

An object representing a menu, action, or command.

class UIAction

A menu element that performs its action in a closure.

class UICommand

A menu element that performs its action in a selector.

class UIKeyCommand

An object that specifies a key press performed on a hardware keyboard and the resulting action.

struct UIMenuElement.Attributes

Attributes that determine the style of the menu element.