Contents

title

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

Declaration

var title: String { get set }

Discussion

Use this property to specify the title of your 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

Providing the primary content