Instance Property


The title of the alert.


var title: String? { get set }


The title string is displayed prominently in the alert or action sheet. You should use this string to get the user’s attention and communicate the reason for displaying the alert.

See Also

Configuring the Alert

var message: String?

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

var preferredStyle: UIAlertController.Style

The style of the alert controller.