Instance Property


A secondary description of the reason for the alert.


var subtitle: String { get }


Subtitles offer additional context in cases where the title alone is not clear. Subtitles are not displayed in all cases. If your app is not authorized to display alert-based notifications, this property is ignored.

See Also

Getting the Notification Data

var title: String

A short description of the reason for the alert.

var body: String

The message displayed in the notification alert.

var badge: NSNumber?

The number to display as the app’s icon badge.

var sound: UNNotificationSound?

The sound to play when the notification is delivered.

var launchImageName: String

The name of the launch image to display when your app is launched in response to the notification

var userInfo: [AnyHashable : Any]

A dictionary of custom information associated with the notification.

var attachments: [UNNotificationAttachment]

An array of attachments to display with the notification.