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)) -> 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
DestructiveApprove Protocol Reference