removeAllPendingNotificationRequests()
Removes all of your app’s pending local notifications.
Declaration
func removeAllPendingNotificationRequests()Discussion
This method executes asynchronously, removing all pending notification requests on a secondary thread.
let center = UNUserNotificationCenter.current()
center.removeAllPendingNotificationRequests()