Alertable

public protocol Alertable

To provide the functionality of showing a popup on any screen

  • alert(_:message:handler:) Default implementation

    Display a notification popup

    Default Implementation

    Declaration

    Swift

    func alert(_ title: String?, message: String?, handler: (() -> Void)?)
  • Display a dialog for confirmation

    Default Implementation

    Declaration

    Swift

    func confirm(_ title: String?, message: String?, action: String, destructive: Bool, handler: (() -> Void)?)
  • prompt(_:message:handler:) Default implementation

    Display a popup asking for user input

    Default Implementation

    Declaration

    Swift

    func prompt(_ title: String?, message: String?, handler: @escaping (String?) -> Void)