Creates an action.
- iOS 7.0+
- Mac Catalyst 13.0+
- Xcode 11.0+
The title to display for the action.
The image to display next to the action's
title. Only the
contextmenu system supports the display of an image, and only when the app is running in iOS.
The unique identifier for the action. Specify
nilto let this method create a unique identifier for you.
An elaborated title that explains the purpose of the action.
The attributes indicating the style of the action.
The initial state of the action.
The handler invoked after the user selects the action. This handler has the following parameter:
The action selected by the user.