Contents

title

The localized text that provides the notification’s primary description.

Declaration

var title: String { get }

Discussion

When a title is present, the system attempts to display a notification alert. If your app isn’t authorized to display alert-based notifications, the system ignores this property.

Title strings should be short, usually only a couple of words describing the reason for the notification. In watchOS, the system displays the title string as part of the short look notification interface, which has limited space.

See Also

Accessing the primary content