---
title: preferredStyle
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uialertcontroller/preferredstyle
---

# preferredStyle

The style of the alert controller.

## Declaration

```swift
var preferredStyle: UIAlertController.Style { get }
```

## Discussion

Discussion 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

- [title](uikit/uialertcontroller/title.md)
- [message](uikit/uialertcontroller/message.md)
- [UIAlertController.Style](uikit/uialertcontroller/style.md)
