Contents

UIMenuElement

An object representing a menu, action, or command.

Declaration

@MainActor class UIMenuElement

Overview

UIMenuElement defines the behavior shared by all menus, actions, and commands. You don’t create UIMenuElement objects directly. Instead, you create an appropriate object that inherits from this class, such as UIMenu, UIAction, or UICommand.

Topics

Getting the element attributes

Creating a menu element

Constants

See Also

Menu elements and keyboard shortcuts