UIMenuLeaf
An interface for an object that represents a menu element without child elements.
Declaration
@MainActor protocol UIMenuLeaf : NSObjectProtocolOverview
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.