Instance Method

action(for:)

Gets the action for the specified action identifier.

Required.

Declaration

func action(for identifier: UIAction.Identifier) -> UIAction?

Parameters

identifier

The identifier of the action to retrieve.

Return Value

An action object; otherwise, nil if there are no actions with the specified identifier.

See Also

Getting Menu Systems and Elements

var system: UIMenuSystem

The menu system that the menu builder modifies.

Required.

func menu(for: UIMenu.Identifier) -> UIMenu?

Gets the menu for the specified menu identifier.

Required.

func command(for: Selector, propertyList: Any?) -> UICommand?

Gets the command for the specified selector and property list.