command(for:propertyList:)
Gets the command for the specified selector and property list.
Declaration
@MainActor @preconcurrency func command(for action: Selector, propertyList: Any? = nil) -> UICommand?Parameters
- action:
The selector of the command to retrieve.
- propertyList:
The property list object that identifies the command when more than one command uses the same action.
Return Value
A command object; otherwise, nil if there is no such command.