---
title: alertBody
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uilocalnotification/alertbody
---

# alertBody

The message displayed in the notification alert.

## Declaration

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

## Discussion

Discussion Assign a string or, preferably, a localized-string key (using NSLocalizedString) as the value of the message. If the value of this property is non-nil, an alert is displayed. The default value is nil (no alert). Printf style escape characters are stripped from the string prior to display; to include a percent symbol (%) in the message, use two percent symbols (%%).

## See Also

### Composing the alert

- [alertAction](uikit/uilocalnotification/alertaction.md)
- [alertTitle](uikit/uilocalnotification/alerttitle.md)
- [hasAction](uikit/uilocalnotification/hasaction.md)
- [alertLaunchImage](uikit/uilocalnotification/alertlaunchimage.md)
- [category](uikit/uilocalnotification/category.md)
