DestructiveApprove

public protocol DestructiveApprove

Declare a method to add a destructive action.

  • Add a destructive action like Destroy and returns a presentable object.

    Declaration

    Swift

    func destructiveApprove(title: String, handler: @escaping ((UIAlertAction) -> Void)) -> Present

    Parameters

    title

    The title of the action.

    handler

    A block to execute when the user selects the action.

    Return Value

    A presentable object.