Type Alias


The handler block to call in response to the selection of an action


typealias Handler = (UIContextualAction, UIView, @escaping (Bool) -> Void) -> Void



The object containing information about the selected action.


The view in which the action was displayed.


The handler block for you to execute after you have performed the action. This block has no return value and takes the following parameter:


A Boolean value indicating whether you performed the action. Specify true if you performed the action or false if you were unable to perform the action for some reason.

See Also

Getting the Configuration Details

var handler: UIContextualAction.Handler

The handler block to execute when the user selects the action.

var style: UIContextualAction.Style

The style that is applied to the action button.

enum UIContextualAction.Style

Constants indicating the style information that is applied to the action button.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software