Contents

UIMenuLeaf

An interface for an object that represents a menu element without child elements.

Declaration

@MainActor protocol UIMenuLeaf : NSObjectProtocol

Overview

UIMenuLeaf defines the behavior shared by menu elements that don’t have child elements. Don’t implement the UIMenuLeaf protocol in your object directly. Instead, create an appropriate object that implements this protocol, such as UIAction or UICommand.

Topics

Managing the appearance

Managing the selection state

Performing actions

Instance Properties

See Also

Menu elements and keyboard shortcuts