Instance Property


A Boolean value indicating whether the current device supports notification content extensions.


var supportsContentExtensions: Bool { get }


Notification content extensions let you customize the appearance of the alerts displayed for your app's notifications. The value of this property is true for devices that support notification content extensions and false for devices that do not support them. For information about how to implement a notification content extension, see Customizing the Appearance of Notifications.

See Also

Managing Settings and Authorization

func requestAuthorization(options: UNAuthorizationOptions, completionHandler: (Bool, Error?) -> Void)

Requests authorization to interact with the user when local and remote notifications are delivered to the user’s device.

struct UNAuthorizationOptions

Constants for requesting authorization to interact with the user.