Contents

UIContextualAction.Handler

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

Declaration

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

Parameters

  • action:

    The object containing information about the selected action.

  • sourceView:

    The view in which the action was displayed.

  • completionHandler:

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

    actionPerformed

    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