Approve

public protocol Approve: class

Declare a method to add an approvable action.

  • Add an approvable action like OK and returns a presentable object.

    Declaration

    Swift

    func approve() -> Present

    Return Value

    A presentable object.

  • Add an approvable action like OK and returns a presentable object.

    Declaration

    Swift

    func approve(_ handler: @escaping ((UIAlertAction) -> Void)) -> Present

    Parameters

    handler

    A block to execute when the user selects the action.

    Return Value

    A presentable object.

  • Add an approvable action like OK and returns a presentable object.

    Declaration

    Swift

    func approve(title: String) -> Present

    Parameters

    title

    The title of the action.

    Return Value

    A presentable object.

  • Add an approvable action like OK and returns a presentable object.

    Declaration

    Swift

    func approve(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.