Structure

UIMenuElement.Attributes

Attributes that determine the style of the menu element.

Declaration

struct Attributes

Topics

Attributes

static var destructive: UIMenuElement.Attributes

An attribute indicating the destructive style.

static var disabled: UIMenuElement.Attributes

An attribute indicating the disabled style.

static var hidden: UIMenuElement.Attributes

An attribute indicating the hidden style.

Relationships

Conforms To

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 app built with Mac Catalyst.

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.

enum UIMenuElement.State

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