UNUserNotificationCenter
UNUserNotificationCenter is the central object in the UserNotifications framework responsible for managing notifications for an app.
Access and authorization: An app obtains the shared center with a call to current(). To display alerts,
Scheduling and delivering notifications: Local notifications are created with a content object (UNMutableNotificationContent) and a trigger
Managing delivered and pending notifications: The center provides methods to query and modify notifications, including getDeliveredNotifications
Delegate and user interaction: Implementing UNUserNotificationCenterDelegate allows the app to respond when notifications arrive while the
Categories and actions: Notifications can define categories (UNNotificationCategory) with custom actions (UNNotificationAction), enabling quick user responses
History and scope: Introduced with the UserNotifications framework in iOS 10, UNUserNotificationCenter remains the central API