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() -> PresentReturn Value
A presentable object.
-
Add an approvable action like
OK
and returns a presentable object.Declaration
Swift
func approve(_ handler: @escaping ((UIAlertAction) -> Void)) -> PresentParameters
handlerA 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) -> PresentParameters
titleThe 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)) -> PresentParameters
titleThe title of the action.
handlerA block to execute when the user selects the action.
Return Value
A presentable object.
View on GitHub
Install in Dash
Approve Protocol Reference