AlertStyle class
AlertStyle class consists of following parameters.
Parameters Optional
Optional| Parameter | Type | Description |
|---|---|---|
| title | String | Title of AlertController |
| message | String | Message content of AlertController |
| preferredStyle | UIAlertController.Style | Type of AlertController |
| dismissConfirmText | String | Confirm button text of the Alert |
| dismissConfirmStyle | UIAlertAction.Style | Confirm button style |
| dismissCancelText | String | Cancel button text of the Alert |
| dismissCancelStyle | UIAlertAction.Style | Cancel 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 CheckoutStyleUpdated 8 months ago
