AlertStyle class

AlertStyle class consists of following parameters.

Parameters Optional

ParameterTypeDescription
titleStringTitle of AlertController
messageStringMessage content of AlertController
preferredStyleUIAlertController.StyleType of AlertController
dismissConfirmTextStringConfirm button text of the Alert
dismissConfirmStyleUIAlertAction.StyleConfirm button style
dismissCancelTextStringCancel button text of the Alert
dismissCancelStyleUIAlertAction.StyleCancel button style

Example

var alertStyle = AlertStyle()
alertStyle.title = "Close"
alertStyle.message = "Are you sure?"
alertStyle.preferredStyle = .actionSheet
alertStyle.dismissConfirmText = "OK"
alertStyle.dismissCancelText = "Nope"
configuration.checkoutStyle.dismissAlertStyle = alertStyle // Apply the style on CheckoutStyle