Protocol
ADAlertConfigurable
public protocol ADAlertConfigurable
Protocol use to show alert.
Requirements
alert(on:title:message:completion:)
static func alert(on: UIViewController, title: String?, message: String?, completion: ((Int)->Void)?)
Show alert on controller.
Parameters
Name | Type | Description |
---|---|---|
on | UIViewController |
The controller to show alert. |
title | String? |
Alert title. |
message | String? |
Alert message. |
completion | ((Int)->Void)? |
Called when confirm button click. |