UIAlertController
extension UIAlertController
-
This method helps to build a alert for displaying error messages.
Declaration
Swift
static func errorAlert( title: String? = nil, message: String, okTitle: String? = nil, secondaryActionTitle: String? = nil, completion: (() -> Void)? = nil, secondaryActionCompletion: (() -> Void)? = nil ) -> UIAlertControllerParameters
titleThe title of the alert. If omitted, it will use the general error title.
messageThe description of the alert.
okTitleThe text of the ok action.
secondaryActionTitleThe text of the secondary action, if there is one.
hasSecondaryActionIndicates whether an alert has a secondary action or not.
completionThe completion handler for the “ok” action.
secondaryActionCompletionThe completion handler for the secondary action.
Return Value
An alert with either one or two actions, with the specified completion handlers and texts.
-
Undocumented
Declaration
Swift
class func localizedHowRiskDetectionWorksAlertController( maximumNumberOfDays: Int ) -> UIAlertController