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

# title

The title of the alert.

## Declaration

```swift
var title: String? { get set }
```

## Discussion

Discussion 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

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