Alertable
public protocol Alertable
To provide the functionality of showing a popup on any screen
-
alert(_:message:handler:)
Default implementationDisplay a notification popup
Default Implementation
Declaration
Swift
func alert(_ title: String?, message: String?, handler: (() -> Void)?)
-
confirm(_:message:action:destructive:handler:)
Default implementationDisplay a dialog for confirmation
Default Implementation
Declaration
Swift
func confirm(_ title: String?, message: String?, action: String, destructive: Bool, handler: (() -> Void)?)
-
prompt(_:message:handler:)
Default implementationDisplay a popup asking for user input
Default Implementation
Declaration
Swift
func prompt(_ title: String?, message: String?, handler: @escaping (String?) -> Void)