currentUserNotificationSettings
Returns the user notification settings for the app.
Declaration
var currentUserNotificationSettings: UIUserNotificationSettings? { get }Return Value
A user notification settings object indicating the types of notifications that your app may use.
Discussion
If you configure local or remote notifications with unavailable notification types, the system does not display the corresponding alerts to the user. The system does still deliver the local and remote notifications to your app.