UIMenuElement
An object representing a menu, action, or command.
Declaration
@MainActor class UIMenuElementOverview
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.