Instance Property


The style of the alert controller.


var preferredStyle: UIAlertController.Style { get }


The value of this property is set to the value you specified in the init(title:message:preferredStyle:) method. This value determines how the alert is displayed onscreen.

See Also

Configuring the Alert

var title: String?

The title of the alert.

var message: String?

Descriptive text that provides more details about the reason for the alert.