Skip to content

UserNotifications iOS xcode13.0 beta1

tj_devel709 edited this page Jul 19, 2021 · 3 revisions

#UserNotifications.framework https://github.com/xamarin/xamarin-macios/pull/12130

diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/NSString+UserNotifications.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/NSString+UserNotifications.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/NSString+UserNotifications.h	2021-03-16 08:47:32.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/NSString+UserNotifications.h	2021-06-02 12:47:08.000000000 -0400
@@ -12,7 +12,7 @@
 @interface NSString (UNUserNotificationCenterSupport)
 
 // Use -[NSString localizedUserNotificationStringForKey:arguments:] to provide a string that will be localized at the time that the notification is presented.
-+ (NSString *)localizedUserNotificationStringForKey:(NSString *)key arguments:(nullable NSArray *)arguments __API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0)) __API_UNAVAILABLE(tvos);
++ (NSString *)localizedUserNotificationStringForKey:(NSString *)key arguments:(nullable NSArray *)arguments API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0)) API_UNAVAILABLE(tvos);
 
 @end
 
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNError.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNError.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNError.h	2021-03-16 08:47:32.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNError.h	2021-06-02 12:47:07.000000000 -0400
@@ -7,7 +7,7 @@
 
 #import <Foundation/Foundation.h>
 
-extern NSString * const UNErrorDomain __API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0), tvos(10.0));
+extern NSString * const UNErrorDomain API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0), tvos(10.0));
 
 typedef NS_ENUM(NSInteger, UNErrorCode) {
     UNErrorCodeNotificationsNotAllowed = 1,
@@ -21,4 +21,7 @@
     
     UNErrorCodeNotificationInvalidNoDate = 1400,
     UNErrorCodeNotificationInvalidNoContent,
-} __API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0), tvos(10.0));
+    
+    UNErrorCodeContentProvidingObjectNotAllowed = 1500,
+    UNErrorCodeContentProvidingInvalid,
+} API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0), tvos(10.0));
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotification.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotification.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotification.h	2021-03-16 08:47:32.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotification.h	2021-06-02 12:47:08.000000000 -0400
@@ -11,7 +11,7 @@
 
 NS_ASSUME_NONNULL_BEGIN
 
-__API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0), tvos(10.0))
+API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0), tvos(10.0))
 @interface UNNotification : NSObject <NSCopying, NSSecureCoding>
 
 // The date displayed on the notification.
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationAction.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationAction.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationAction.h	2021-03-16 08:47:32.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationAction.h	2021-06-02 12:47:07.000000000 -0400
@@ -7,6 +7,8 @@
 
 #import <Foundation/Foundation.h>
 
+@class UNNotificationActionIcon;
+
 NS_ASSUME_NONNULL_BEGIN
 
 typedef NS_OPTIONS(NSUInteger, UNNotificationActionOptions) {
@@ -19,11 +21,11 @@
 
     // Whether this action should cause the application to launch in the foreground.
     UNNotificationActionOptionForeground = (1 << 2),
-} __API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0)) __API_UNAVAILABLE(tvos);
+} API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0)) API_UNAVAILABLE(tvos);
 
-static const UNNotificationActionOptions UNNotificationActionOptionNone NS_SWIFT_UNAVAILABLE("Use [] instead.") __API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0)) __API_UNAVAILABLE(tvos) = 0;
+static const UNNotificationActionOptions UNNotificationActionOptionNone NS_SWIFT_UNAVAILABLE("Use [] instead.") API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0)) API_UNAVAILABLE(tvos) = 0;
 
-__API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0)) __API_UNAVAILABLE(tvos)
+API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0)) API_UNAVAILABLE(tvos)
 @interface UNNotificationAction : NSObject <NSCopying, NSSecureCoding>
 
 // The unique identifier for this action.
@@ -35,19 +37,27 @@
 // The options configured for this action.
 @property (NS_NONATOMIC_IOSONLY, readonly) UNNotificationActionOptions options;
 
+// The icon configured for this action.
+@property (NS_NONATOMIC_IOSONLY, readonly, copy, nullable) UNNotificationActionIcon *icon API_AVAILABLE(macos(12.0), ios(15.0), watchos(8.0), tvos(15.0));
+
 // Use -[NSString localizedUserNotificationStringForKey:arguments:] to provide a string that will be localized at the time that the notification is presented.
 + (instancetype)actionWithIdentifier:(NSString *)identifier title:(NSString *)title options:(UNNotificationActionOptions)options;
 
++ (instancetype)actionWithIdentifier:(NSString *)identifier title:(NSString *)title options:(UNNotificationActionOptions)options icon:(nullable UNNotificationActionIcon *)icon API_AVAILABLE(macos(12.0), ios(15.0), watchos(8.0), tvos(15.0));
+
+
 - (instancetype)init NS_UNAVAILABLE;
 
 @end
 
-__API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0)) __API_UNAVAILABLE(tvos)
+API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0)) API_UNAVAILABLE(tvos)
 @interface UNTextInputNotificationAction : UNNotificationAction
 
 // Use -[NSString localizedUserNotificationStringForKey:arguments:] to provide a string that will be localized at the time that the notification is presented.
 + (instancetype)actionWithIdentifier:(NSString *)identifier title:(NSString *)title options:(UNNotificationActionOptions)options textInputButtonTitle:(NSString *)textInputButtonTitle textInputPlaceholder:(NSString *)textInputPlaceholder;
 
++ (instancetype)actionWithIdentifier:(NSString *)identifier title:(NSString *)title options:(UNNotificationActionOptions)options icon:(nullable UNNotificationActionIcon *)icon textInputButtonTitle:(NSString *)textInputButtonTitle textInputPlaceholder:(NSString *)textInputPlaceholder API_AVAILABLE(macos(12.0), ios(15.0), watchos(8.0), tvos(15.0));
+
 // The text input button title displayed for this action.
 @property (NS_NONATOMIC_IOSONLY, copy, readonly) NSString *textInputButtonTitle;
 
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationActionIcon.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationActionIcon.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationActionIcon.h	1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationActionIcon.h	2021-06-02 12:47:07.000000000 -0400
@@ -0,0 +1,23 @@
+//
+//  UNNotificationActionIcon.h
+//  UserNotifications
+//
+//  Copyright © 2021 Apple Inc. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+API_AVAILABLE(macos(12.0), ios(15.0), watchos(8.0), tvos(15.0))
+@interface UNNotificationActionIcon : NSObject <NSCopying, NSSecureCoding>
+
++ (instancetype)iconWithTemplateImageName:(NSString *)templateImageName;
+
++ (instancetype)iconWithSystemImageName:(NSString *)systemImageName;
+
+- (instancetype)init NS_UNAVAILABLE;
+
+@end
+
+NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationAttachment.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationAttachment.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationAttachment.h	2021-03-16 08:47:32.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationAttachment.h	2021-06-02 12:47:07.000000000 -0400
@@ -9,7 +9,7 @@
 
 NS_ASSUME_NONNULL_BEGIN
 
-__API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0)) __API_UNAVAILABLE(tvos)
+API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0)) API_UNAVAILABLE(tvos)
 @interface UNNotificationAttachment : NSObject <NSCopying, NSSecureCoding>
 
 // The identifier of this attachment
@@ -29,16 +29,16 @@
 @end
 
 // Key to manually provide a type hint for the attachment. If not set the type hint will be guessed from the attachment's file extension. Value must be an NSString.
-extern NSString * const UNNotificationAttachmentOptionsTypeHintKey __API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0)) __API_UNAVAILABLE(tvos);
+extern NSString * const UNNotificationAttachmentOptionsTypeHintKey API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0)) API_UNAVAILABLE(tvos);
 
 // Key to specify if the thumbnail for this attachment is hidden. Defaults to NO. Value must be a boolean NSNumber.
-extern NSString * const UNNotificationAttachmentOptionsThumbnailHiddenKey __API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0)) __API_UNAVAILABLE(tvos);
+extern NSString * const UNNotificationAttachmentOptionsThumbnailHiddenKey API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0)) API_UNAVAILABLE(tvos);
 
 // Key to specify a normalized clipping rectangle to use for the attachment thumbnail. Value must be a CGRect encoded using CGRectCreateDictionaryRepresentation.
-extern NSString * const UNNotificationAttachmentOptionsThumbnailClippingRectKey __API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0)) __API_UNAVAILABLE(tvos);
+extern NSString * const UNNotificationAttachmentOptionsThumbnailClippingRectKey API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0)) API_UNAVAILABLE(tvos);
 
 // Key to specify the animated image frame number or the movie time to use as the thumbnail.
 // An animated image frame number must be an NSNumber. A movie time must either be an NSNumber with the time in seconds or a CMTime encoded using CMTimeCopyAsDictionary.
-extern NSString * const UNNotificationAttachmentOptionsThumbnailTimeKey __API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0)) __API_UNAVAILABLE(tvos);
+extern NSString * const UNNotificationAttachmentOptionsThumbnailTimeKey API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0)) API_UNAVAILABLE(tvos);
 
 NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationCategory.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationCategory.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationCategory.h	2021-03-16 05:18:21.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationCategory.h	2021-06-02 12:44:10.000000000 -0400
@@ -17,22 +17,22 @@
     UNNotificationCategoryOptionCustomDismissAction = (1 << 0),
     
     // Whether notifications of this category should be allowed in CarPlay
-    UNNotificationCategoryOptionAllowInCarPlay __API_UNAVAILABLE(macos) = (1 << 1),
+    UNNotificationCategoryOptionAllowInCarPlay API_UNAVAILABLE(macos) = (1 << 1),
     
     // Whether the title should be shown if the user has previews off
-    UNNotificationCategoryOptionHiddenPreviewsShowTitle __API_AVAILABLE(macos(10.14), ios(11.0)) __API_UNAVAILABLE(watchos, tvos) = (1 << 2),
+    UNNotificationCategoryOptionHiddenPreviewsShowTitle API_AVAILABLE(macos(10.14), ios(11.0)) API_UNAVAILABLE(watchos, tvos) = (1 << 2),
     
     // Whether the subtitle should be shown if the user has previews off
-    UNNotificationCategoryOptionHiddenPreviewsShowSubtitle __API_AVAILABLE(macos(10.14), ios(11.0)) __API_UNAVAILABLE(watchos, tvos) = (1 << 3),
+    UNNotificationCategoryOptionHiddenPreviewsShowSubtitle API_AVAILABLE(macos(10.14), ios(11.0)) API_UNAVAILABLE(watchos, tvos) = (1 << 3),
 
     // Whether notifications of this category should be allowed for announcing notifications
-    UNNotificationCategoryOptionAllowAnnouncement __API_AVAILABLE(ios(13.0), watchos(6.0)) __API_UNAVAILABLE(macos, tvos) = (1 << 4),
+    UNNotificationCategoryOptionAllowAnnouncement API_DEPRECATED("Announcement option is ignored", ios(13.0, 15.0), watchos(6.0, 7.0)) API_UNAVAILABLE(macos, tvos) = (1 << 4),
 
-} __API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0)) __API_UNAVAILABLE(tvos);
+} API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0)) API_UNAVAILABLE(tvos);
 
-static const UNNotificationCategoryOptions UNNotificationCategoryOptionNone NS_SWIFT_UNAVAILABLE("Use [] instead.") __API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0)) __API_UNAVAILABLE(tvos) = 0;
+static const UNNotificationCategoryOptions UNNotificationCategoryOptionNone NS_SWIFT_UNAVAILABLE("Use [] instead.") API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0)) API_UNAVAILABLE(tvos) = 0;
 
-__API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0)) __API_UNAVAILABLE(tvos)
+API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0)) API_UNAVAILABLE(tvos)
 @interface UNNotificationCategory : NSObject <NSCopying, NSSecureCoding>
 
 // The unique identifier for this category. The UNNotificationCategory's actions will be displayed on notifications when the UNNotificationCategory's identifier matches the UNNotificationRequest's categoryIdentifier.
@@ -47,7 +47,7 @@
 @property (NS_NONATOMIC_IOSONLY, readonly) UNNotificationCategoryOptions options;
 
 // The format string that will replace the notification body if previews are hidden.
-@property (NS_NONATOMIC_IOSONLY, readonly, copy) NSString *hiddenPreviewsBodyPlaceholder __API_AVAILABLE(ios(11.0)) __API_UNAVAILABLE(watchos, tvos);
+@property (NS_NONATOMIC_IOSONLY, readonly, copy) NSString *hiddenPreviewsBodyPlaceholder API_AVAILABLE(ios(11.0)) API_UNAVAILABLE(watchos, tvos);
 
 /// A format string for a summary description when notifications from this category are grouped together.
 /// It should contain descriptive text and format arguments that will be replaced with the information
@@ -55,7 +55,7 @@
 /// of notifications and the list created by joining the argument in each grouped notification.
 /// For example: "%u new messages from %@".
 /// The arguments list is optional, "%u new messages" is also accepted.
-@property (NS_NONATOMIC_IOSONLY, readonly, copy) NSString *categorySummaryFormat __API_AVAILABLE(ios(12.0)) __API_UNAVAILABLE(watchos, tvos);
+@property (NS_NONATOMIC_IOSONLY, readonly, copy) NSString *categorySummaryFormat API_AVAILABLE(ios(12.0)) API_UNAVAILABLE(watchos, tvos);
 
 + (instancetype)categoryWithIdentifier:(NSString *)identifier
                                actions:(NSArray<UNNotificationAction *> *)actions
@@ -66,14 +66,14 @@
                                actions:(NSArray<UNNotificationAction *> *)actions
                      intentIdentifiers:(NSArray<NSString *> *)intentIdentifiers
          hiddenPreviewsBodyPlaceholder:(NSString *)hiddenPreviewsBodyPlaceholder
-                               options:(UNNotificationCategoryOptions)options __API_AVAILABLE(ios(11.0)) __API_UNAVAILABLE(watchos, tvos);
+                               options:(UNNotificationCategoryOptions)options API_AVAILABLE(ios(11.0)) API_UNAVAILABLE(watchos, tvos);
 
 + (instancetype)categoryWithIdentifier:(NSString *)identifier
                                actions:(NSArray<UNNotificationAction *> *)actions
                      intentIdentifiers:(NSArray<NSString *> *)intentIdentifiers
          hiddenPreviewsBodyPlaceholder:(nullable NSString *)hiddenPreviewsBodyPlaceholder
                  categorySummaryFormat:(nullable NSString *)categorySummaryFormat
-                               options:(UNNotificationCategoryOptions)options __API_AVAILABLE(ios(12.0)) __API_UNAVAILABLE(watchos, tvos);
+                               options:(UNNotificationCategoryOptions)options API_AVAILABLE(ios(12.0)) API_UNAVAILABLE(watchos, tvos);
 
 - (instancetype)init NS_UNAVAILABLE;
 
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h	2021-03-16 09:54:36.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h	2021-06-02 12:47:07.000000000 -0400
@@ -7,102 +7,150 @@
 
 #import <Foundation/Foundation.h>
 
+#import <UserNotifications/UNNotificationInterruptionReason.h>
+
 @class UNNotificationAttachment;
 @class UNNotificationSound;
+@class UNNotificationContent;
 
 NS_ASSUME_NONNULL_BEGIN
 
-__API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0), tvos(10.0))
+// Other system framework objects can conform to UNNotificationContentProviding to provide context relevant to the notification. Only objects that conform to UNNotificationContentProviding in the Apple SDK are allowed. The conformance will be ignored by other objects conforming to UNNotificationContentProviding. Do not conform objects to UNNotificationContentProviding.
+API_AVAILABLE(macos(12.0), ios(15.0), watchos(8.0), tvos(15.0))
+@protocol UNNotificationContentProviding <NSObject>
+@end
+
+typedef NS_ENUM(NSUInteger, UNNotificationInterruptionLevel) {
+    // Added to the notification list; does not light up screen or play sound
+    UNNotificationInterruptionLevelPassive,
+    
+    // Presented immediately; Lights up screen and may play a sound
+    UNNotificationInterruptionLevelActive,
+    
+    // Presented immediately; Lights up screen and may play a sound; May be presented during Do Not Disturb
+    UNNotificationInterruptionLevelTimeSensitive,
+    
+    // Presented immediately; Lights up screen and plays sound; Always presented during Do Not Disturb; Bypasses mute switch; Includes default critical alert sound if no sound provided
+    UNNotificationInterruptionLevelCritical,
+
+} API_AVAILABLE(macos(12.0), ios(15.0), watchos(8.0), tvos(15.0));
+
+API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0), tvos(10.0))
 @interface UNNotificationContent : NSObject <NSCopying, NSMutableCopying, NSSecureCoding>
 
 // Optional array of attachments.
-@property (NS_NONATOMIC_IOSONLY, readonly, copy) NSArray <UNNotificationAttachment *> *attachments __API_UNAVAILABLE(tvos);
+@property (NS_NONATOMIC_IOSONLY, readonly, copy) NSArray <UNNotificationAttachment *> *attachments API_UNAVAILABLE(tvos);
 
 // The application badge number.
 @property (NS_NONATOMIC_IOSONLY, readonly, copy, nullable) NSNumber *badge;
 
 // The body of the notification.
-@property (NS_NONATOMIC_IOSONLY, readonly, copy) NSString *body __API_UNAVAILABLE(tvos);
+@property (NS_NONATOMIC_IOSONLY, readonly, copy) NSString *body API_UNAVAILABLE(tvos);
 
 // The identifier for a registered UNNotificationCategory that will be used to determine the appropriate actions to display for the notification.
-@property (NS_NONATOMIC_IOSONLY, readonly, copy) NSString *categoryIdentifier __API_UNAVAILABLE(tvos);
+@property (NS_NONATOMIC_IOSONLY, readonly, copy) NSString *categoryIdentifier API_UNAVAILABLE(tvos);
 
 // The launch image that will be used when the app is opened from the notification.
-@property (NS_NONATOMIC_IOSONLY, readonly, copy) NSString *launchImageName __API_UNAVAILABLE(macos, tvos);
+@property (NS_NONATOMIC_IOSONLY, readonly, copy) NSString *launchImageName API_UNAVAILABLE(macos, tvos);
 
 // The sound that will be played for the notification.
-@property (NS_NONATOMIC_IOSONLY, readonly, copy, nullable) UNNotificationSound *sound __API_UNAVAILABLE(tvos);
+@property (NS_NONATOMIC_IOSONLY, readonly, copy, nullable) UNNotificationSound *sound API_UNAVAILABLE(tvos);
 
 // The subtitle of the notification.
-@property (NS_NONATOMIC_IOSONLY, readonly, copy) NSString *subtitle __API_UNAVAILABLE(tvos);
+@property (NS_NONATOMIC_IOSONLY, readonly, copy) NSString *subtitle API_UNAVAILABLE(tvos);
 
 // The unique identifier for the thread or conversation related to this notification request. It will be used to visually group notifications together.
-@property (NS_NONATOMIC_IOSONLY, readonly, copy) NSString *threadIdentifier __API_UNAVAILABLE(tvos);
+@property (NS_NONATOMIC_IOSONLY, readonly, copy) NSString *threadIdentifier API_UNAVAILABLE(tvos);
 
 // The title of the notification.
-@property (NS_NONATOMIC_IOSONLY, readonly, copy) NSString *title __API_UNAVAILABLE(tvos);
+@property (NS_NONATOMIC_IOSONLY, readonly, copy) NSString *title API_UNAVAILABLE(tvos);
 
 // Apps can set the userInfo for locally scheduled notification requests. The contents of the push payload will be set as the userInfo for remote notifications.
-@property (NS_NONATOMIC_IOSONLY, readonly, copy) NSDictionary *userInfo __API_UNAVAILABLE(tvos);
+@property (NS_NONATOMIC_IOSONLY, readonly, copy) NSDictionary *userInfo API_UNAVAILABLE(tvos);
 
 /// The argument to be inserted in the summary for this notification.
-@property (NS_NONATOMIC_IOSONLY, readonly, copy) NSString *summaryArgument __API_AVAILABLE(ios(12.0)) __API_UNAVAILABLE(watchos, tvos);
+@property (NS_NONATOMIC_IOSONLY, readonly, copy) NSString *summaryArgument API_AVAILABLE(ios(12.0)) API_UNAVAILABLE(watchos, tvos);
 
 /// A number that indicates how many items in the summary are represented in the summary.
 /// For example if a podcast app sends one notification for 3 new episodes in a show,
 /// the argument should be the name of the show and the count should be 3.
 /// Default is 1 and cannot be 0.
-@property (NS_NONATOMIC_IOSONLY, readonly, assign) NSUInteger summaryArgumentCount __API_AVAILABLE(ios(12.0)) __API_UNAVAILABLE(watchos, tvos);
+@property (NS_NONATOMIC_IOSONLY, readonly, assign) NSUInteger summaryArgumentCount API_AVAILABLE(ios(12.0)) API_UNAVAILABLE(watchos, tvos);
 
 // An identifier for the content of the notification used by the system to customize the scene to be activated when tapping on a notification.
-@property (NS_NONATOMIC_IOSONLY, readonly, copy, nullable) NSString *targetContentIdentifier __API_AVAILABLE(ios(13.0)); // default nil
+@property (NS_NONATOMIC_IOSONLY, readonly, copy, nullable) NSString *targetContentIdentifier API_AVAILABLE(ios(13.0)); // default nil
+
+// The interruption level determines the degree of interruption associated with the notification
+@property (NS_NONATOMIC_IOSONLY, readonly, assign) UNNotificationInterruptionLevel interruptionLevel API_AVAILABLE(macos(12.0), ios(15.0), watchos(8.0), tvos(15.0));
+
+// Reason associated with the interruption
+@property (NS_NONATOMIC_IOSONLY, readonly, copy) UNNotificationInterruptionReason interruptionReason API_UNAVAILABLE(macos, ios, watchos, tvos);
+
+// Relevance score determines the sorting for the notification across app notifications. The expected range is between 0.0f and 1.0f.
+@property (NS_NONATOMIC_IOSONLY, readonly, assign) double relevanceScore API_AVAILABLE(macos(12.0), ios(15.0), watchos(8.0), tvos(15.0));
+
+/**
+ Contextualizes your UNNotificationContent object with other Apple SDK objects conforming to UNNotificationContentProviding. This will specialize the notification and decorate its look and behavior accordingly. For example, the notification will be treated as a message with an avatar and be promoted to the top of notification center if the object passed in is a valid INSendMessageIntent<UNNotificationContentProviding>. This throws an error with a UNErrorCode found in UNError.h if the UNNotificationContentProviding object is invalid. A valid UNNotificationContent result should not be mutated and be passed directly to UNUserNotificationCenter.
+
+ This should be called in the UNNotificationServiceExtension in didReceiveNotificationRequest:withContentHandler: and the returned UNNotificationContent should be passed to the contentHandler for incoming push notifications.
+ */
+- (nullable UNNotificationContent *)contentByUpdatingWithProvider:(id<UNNotificationContentProviding>)provider error:(out NSError **)outError API_AVAILABLE(macos(12.0), ios(15.0), watchos(8.0), tvos(15.0)) NS_SWIFT_NAME(updating(from:));
 
 @end
 
-__API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0), tvos(10.0))
+API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0), tvos(10.0))
 @interface UNMutableNotificationContent : UNNotificationContent
 
 // Optional array of attachments.
-@property (NS_NONATOMIC_IOSONLY, copy) NSArray <UNNotificationAttachment *> *attachments __API_UNAVAILABLE(tvos);
+@property (NS_NONATOMIC_IOSONLY, readwrite, copy) NSArray <UNNotificationAttachment *> *attachments API_UNAVAILABLE(tvos);
 
 // The application badge number. nil means no change. 0 to hide.
-@property (NS_NONATOMIC_IOSONLY, copy, nullable) NSNumber *badge;
+@property (NS_NONATOMIC_IOSONLY, readwrite, copy, nullable) NSNumber *badge;
 
 // The body of the notification. Use -[NSString localizedUserNotificationStringForKey:arguments:] to provide a string that will be localized at the time that the notification is presented.
-@property (NS_NONATOMIC_IOSONLY, copy) NSString *body __API_UNAVAILABLE(tvos);
+@property (NS_NONATOMIC_IOSONLY, readwrite, copy) NSString *body API_UNAVAILABLE(tvos);
 
 // The identifier for a registered UNNotificationCategory that will be used to determine the appropriate actions to display for the notification.
-@property (NS_NONATOMIC_IOSONLY, copy) NSString *categoryIdentifier __API_UNAVAILABLE(tvos);
+@property (NS_NONATOMIC_IOSONLY, readwrite, copy) NSString *categoryIdentifier API_UNAVAILABLE(tvos);
 
 // The launch image that will be used when the app is opened from the notification.
-@property (NS_NONATOMIC_IOSONLY, copy) NSString *launchImageName __API_UNAVAILABLE(macos, tvos);
+@property (NS_NONATOMIC_IOSONLY, readwrite, copy) NSString *launchImageName API_UNAVAILABLE(macos, tvos);
 
 // The sound that will be played for the notification.
-@property (NS_NONATOMIC_IOSONLY, copy, nullable) UNNotificationSound *sound __API_UNAVAILABLE(tvos);
+@property (NS_NONATOMIC_IOSONLY, readwrite, copy, nullable) UNNotificationSound *sound API_UNAVAILABLE(tvos);
 
 // The subtitle of the notification. Use -[NSString localizedUserNotificationStringForKey:arguments:] to provide a string that will be localized at the time that the notification is presented.
-@property (NS_NONATOMIC_IOSONLY, copy) NSString *subtitle __API_UNAVAILABLE(tvos);
+@property (NS_NONATOMIC_IOSONLY, readwrite, copy) NSString *subtitle API_UNAVAILABLE(tvos);
 
 // The unique identifier for the thread or conversation related to this notification request. It will be used to visually group notifications together.
-@property (NS_NONATOMIC_IOSONLY, copy) NSString *threadIdentifier __API_UNAVAILABLE(tvos);
+@property (NS_NONATOMIC_IOSONLY, readwrite, copy) NSString *threadIdentifier API_UNAVAILABLE(tvos);
 
 // The title of the notification. Use -[NSString localizedUserNotificationStringForKey:arguments:] to provide a string that will be localized at the time that the notification is presented.
-@property (NS_NONATOMIC_IOSONLY, copy) NSString *title __API_UNAVAILABLE(tvos);
+@property (NS_NONATOMIC_IOSONLY, readwrite, copy) NSString *title API_UNAVAILABLE(tvos);
 
 // Apps can set the userInfo for locally scheduled notification requests. The contents of the push payload will be set as the userInfo for remote notifications.
-@property (NS_NONATOMIC_IOSONLY, copy) NSDictionary *userInfo __API_UNAVAILABLE(tvos);
+@property (NS_NONATOMIC_IOSONLY, readwrite, copy) NSDictionary *userInfo API_UNAVAILABLE(tvos);
 
 /// The argument to be inserted in the summary for this notification.
-@property (NS_NONATOMIC_IOSONLY, copy) NSString *summaryArgument __API_AVAILABLE(ios(12.0)) __API_UNAVAILABLE(watchos, tvos);
+@property (NS_NONATOMIC_IOSONLY, readwrite, copy) NSString *summaryArgument API_AVAILABLE(ios(12.0)) API_UNAVAILABLE(watchos, tvos);
 
 /// A number that indicates how many items in the summary are represented in the summary.
 /// For example if a podcast app sends one notification for 3 new episodes in a show,
 /// the argument should be the name of the show and the count should be 3.
 /// Default is 1 and cannot be 0.
-@property (NS_NONATOMIC_IOSONLY, assign) NSUInteger summaryArgumentCount __API_AVAILABLE(ios(12.0)) __API_UNAVAILABLE(watchos, tvos);
+@property (NS_NONATOMIC_IOSONLY, readwrite, assign) NSUInteger summaryArgumentCount API_AVAILABLE(ios(12.0)) API_UNAVAILABLE(watchos, tvos);
 
 // An identifier for the content of the notification used by the system to customize the scene to be activated when tapping on a notification.
-@property (NS_NONATOMIC_IOSONLY, copy, nullable) NSString *targetContentIdentifier __API_AVAILABLE(ios(13.0)); // default nil
+@property (NS_NONATOMIC_IOSONLY, readwrite, copy, nullable) NSString *targetContentIdentifier API_AVAILABLE(ios(13.0)); // default nil
+
+// The interruption level determines the degree of interruption associated with the notification
+@property (NS_NONATOMIC_IOSONLY, readwrite, assign) UNNotificationInterruptionLevel interruptionLevel API_AVAILABLE(macos(12.0), ios(15.0), watchos(8.0), tvos(15.0));
+
+// Reason associated with the interruption
+@property (NS_NONATOMIC_IOSONLY, readwrite, copy) UNNotificationInterruptionReason interruptionReason API_UNAVAILABLE(macos, ios, watchos, tvos);
+
+// Relevance score determines the sorting for the notification across app notifications. The expected range is between 0.0f and 1.0f.
+@property (NS_NONATOMIC_IOSONLY, readwrite, assign) double relevanceScore API_AVAILABLE(macos(12.0), ios(15.0), watchos(8.0), tvos(15.0));
 
 @end
 
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationInterruptionReason.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationInterruptionReason.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationInterruptionReason.h	1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationInterruptionReason.h	2021-06-02 12:47:08.000000000 -0400
@@ -0,0 +1,26 @@
+//
+//  UNNotificationInterruptionReason.h
+//  UserNotifications
+//
+//  Copyright © 2021 Apple Inc. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+typedef NSString *UNNotificationInterruptionReason NS_TYPED_EXTENSIBLE_ENUM API_UNAVAILABLE(macos, ios, watchos, tvos);
+
+extern UNNotificationInterruptionReason const UNNotificationInterruptionReasonAccountSecurity API_UNAVAILABLE(macos, ios, watchos, tvos);
+extern UNNotificationInterruptionReason const UNNotificationInterruptionReasonHealthAndWellness API_UNAVAILABLE(macos, ios, watchos, tvos);
+extern UNNotificationInterruptionReason const UNNotificationInterruptionReasonLocalSafety API_UNAVAILABLE(macos, ios, watchos, tvos);
+extern UNNotificationInterruptionReason const UNNotificationInterruptionReasonHomeSecurity API_UNAVAILABLE(macos, ios, watchos, tvos);
+extern UNNotificationInterruptionReason const UNNotificationInterruptionReasonOrderPickup API_UNAVAILABLE(macos, ios, watchos, tvos);
+extern UNNotificationInterruptionReason const UNNotificationInterruptionReasonPackageDelivery API_UNAVAILABLE(macos, ios, watchos, tvos);
+extern UNNotificationInterruptionReason const UNNotificationInterruptionReasonTransportationDeparting API_UNAVAILABLE(macos, ios, watchos, tvos);
+extern UNNotificationInterruptionReason const UNNotificationInterruptionReasonSchedule API_UNAVAILABLE(macos, ios, watchos, tvos);
+extern UNNotificationInterruptionReason const UNNotificationInterruptionReasonTimeExpired API_UNAVAILABLE(macos, ios, watchos, tvos);
+extern UNNotificationInterruptionReason const UNNotificationInterruptionReasonApprovalRequest API_UNAVAILABLE(macos, ios, watchos, tvos);
+extern UNNotificationInterruptionReason const UNNotificationInterruptionReasonUrgentMessage API_UNAVAILABLE(macos, ios, watchos, tvos);
+
+NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationRequest.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationRequest.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationRequest.h	2021-03-16 08:47:32.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationRequest.h	2021-06-02 12:47:08.000000000 -0400
@@ -12,7 +12,7 @@
 
 NS_ASSUME_NONNULL_BEGIN
 
-__API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0), tvos(10.0))
+API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0), tvos(10.0))
 @interface UNNotificationRequest : NSObject <NSCopying, NSSecureCoding>
 
 // The unique identifier for this notification request. It can be used to replace or remove a pending notification request or a delivered notification.
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationResponse.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationResponse.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationResponse.h	2021-03-16 08:47:32.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationResponse.h	2021-06-02 12:47:07.000000000 -0400
@@ -11,10 +11,10 @@
 
 NS_ASSUME_NONNULL_BEGIN
 
-extern NSString *const UNNotificationDefaultActionIdentifier __API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0)) __API_UNAVAILABLE(tvos);
-extern NSString *const UNNotificationDismissActionIdentifier __API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0)) __API_UNAVAILABLE(tvos);
+extern NSString *const UNNotificationDefaultActionIdentifier API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0)) API_UNAVAILABLE(tvos);
+extern NSString *const UNNotificationDismissActionIdentifier API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0)) API_UNAVAILABLE(tvos);
 
-__API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0)) __API_UNAVAILABLE(tvos)
+API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0)) API_UNAVAILABLE(tvos)
 @interface UNNotificationResponse : NSObject <NSCopying, NSSecureCoding>
 
 // The notification to which the user responded.
@@ -30,7 +30,7 @@
 
 @end
 
-__API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0)) __API_UNAVAILABLE(tvos)
+API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0)) API_UNAVAILABLE(tvos)
 @interface UNTextInputNotificationResponse : UNNotificationResponse
 
 // The text entered or chosen by the user.
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationServiceExtension.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationServiceExtension.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationServiceExtension.h	2021-03-16 08:47:32.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationServiceExtension.h	2021-06-02 12:47:07.000000000 -0400
@@ -12,7 +12,7 @@
 
 NS_ASSUME_NONNULL_BEGIN
 
-__API_AVAILABLE(macos(10.14), ios(10.0), watchos(6.0)) __API_UNAVAILABLE(tvos)
+API_AVAILABLE(macos(10.14), ios(10.0), watchos(6.0)) API_UNAVAILABLE(tvos)
 @interface UNNotificationServiceExtension : NSObject
 
 // Call contentHandler with the modified notification content to deliver. If the handler is not called before the service's time expires then the unmodified notification will be delivered.
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationSettings.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationSettings.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationSettings.h	2021-03-16 08:47:32.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationSettings.h	2021-06-02 12:47:07.000000000 -0400
@@ -20,11 +20,11 @@
     UNAuthorizationStatusAuthorized,
     
     // The application is authorized to post non-interruptive user notifications.
-    UNAuthorizationStatusProvisional __API_AVAILABLE(macos(10.14), ios(12.0), watchos(5.0), tvos(12.0)),
+    UNAuthorizationStatusProvisional API_AVAILABLE(macos(10.14), ios(12.0), watchos(5.0), tvos(12.0)),
     
     // The application is temporarily authorized to post notifications. Only available to app clips.
-    UNAuthorizationStatusEphemeral __API_AVAILABLE(ios(14.0)) __API_UNAVAILABLE(macos, watchos, tvos)
-} __API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0), tvos(10.0));
+    UNAuthorizationStatusEphemeral API_AVAILABLE(ios(14.0)) API_UNAVAILABLE(macos, watchos, tvos)
+} API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0), tvos(10.0));
 
 typedef NS_ENUM(NSInteger, UNShowPreviewsSetting) {
     // Notification previews are always shown.
@@ -35,7 +35,7 @@
     
     // Notifications previews are never shown.
     UNShowPreviewsSettingNever
-} __API_AVAILABLE(macos(10.14), ios(11.0)) __API_UNAVAILABLE(watchos, tvos);
+} API_AVAILABLE(macos(10.14), ios(11.0)) API_UNAVAILABLE(watchos, tvos);
 
 typedef NS_ENUM(NSInteger, UNNotificationSetting) {
     // The application does not support this notification type
@@ -46,36 +46,40 @@
     
     // The notification setting is turned on.
     UNNotificationSettingEnabled,
-} __API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0), tvos(10.0));
+} API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0), tvos(10.0));
 
 typedef NS_ENUM(NSInteger, UNAlertStyle) {
     UNAlertStyleNone = 0,
     UNAlertStyleBanner,
     UNAlertStyleAlert,
-} __API_AVAILABLE(macos(10.14), ios(10.0)) __API_UNAVAILABLE(watchos, tvos);
+} API_AVAILABLE(macos(10.14), ios(10.0)) API_UNAVAILABLE(watchos, tvos);
 
-__API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0), tvos(10.0))
+API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0), tvos(10.0))
 @interface UNNotificationSettings : NSObject <NSCopying, NSSecureCoding>
 
 @property (NS_NONATOMIC_IOSONLY, readonly) UNAuthorizationStatus authorizationStatus;
 
-@property (NS_NONATOMIC_IOSONLY, readonly) UNNotificationSetting soundSetting __API_UNAVAILABLE(tvos);
-@property (NS_NONATOMIC_IOSONLY, readonly) UNNotificationSetting badgeSetting __API_UNAVAILABLE(watchos);
-@property (NS_NONATOMIC_IOSONLY, readonly) UNNotificationSetting alertSetting __API_UNAVAILABLE(tvos);
+@property (NS_NONATOMIC_IOSONLY, readonly) UNNotificationSetting soundSetting API_UNAVAILABLE(tvos);
+@property (NS_NONATOMIC_IOSONLY, readonly) UNNotificationSetting badgeSetting API_UNAVAILABLE(watchos);
+@property (NS_NONATOMIC_IOSONLY, readonly) UNNotificationSetting alertSetting API_UNAVAILABLE(tvos);
 
-@property (NS_NONATOMIC_IOSONLY, readonly) UNNotificationSetting notificationCenterSetting __API_UNAVAILABLE(tvos);
-@property (NS_NONATOMIC_IOSONLY, readonly) UNNotificationSetting lockScreenSetting __API_UNAVAILABLE(watchos, tvos);
-@property (NS_NONATOMIC_IOSONLY, readonly) UNNotificationSetting carPlaySetting __API_UNAVAILABLE(macos, tvos, watchos);
+@property (NS_NONATOMIC_IOSONLY, readonly) UNNotificationSetting notificationCenterSetting API_UNAVAILABLE(tvos);
+@property (NS_NONATOMIC_IOSONLY, readonly) UNNotificationSetting lockScreenSetting API_UNAVAILABLE(watchos, tvos);
+@property (NS_NONATOMIC_IOSONLY, readonly) UNNotificationSetting carPlaySetting API_UNAVAILABLE(macos, tvos, watchos);
 
-@property (NS_NONATOMIC_IOSONLY, readonly) UNAlertStyle alertStyle __API_UNAVAILABLE(watchos, tvos);
+@property (NS_NONATOMIC_IOSONLY, readonly) UNAlertStyle alertStyle API_UNAVAILABLE(watchos, tvos);
 
-@property (NS_NONATOMIC_IOSONLY, readonly) UNShowPreviewsSetting showPreviewsSetting  __API_AVAILABLE(macos(10.14), ios(11.0)) __API_UNAVAILABLE(watchos, tvos);
+@property (NS_NONATOMIC_IOSONLY, readonly) UNShowPreviewsSetting showPreviewsSetting  API_AVAILABLE(macos(10.14), ios(11.0)) API_UNAVAILABLE(watchos, tvos);
 
-@property (NS_NONATOMIC_IOSONLY, readonly) UNNotificationSetting criticalAlertSetting __API_AVAILABLE(macos(10.14), ios(12.0), watchos(5.0)) __API_UNAVAILABLE(tvos);
+@property (NS_NONATOMIC_IOSONLY, readonly) UNNotificationSetting criticalAlertSetting API_AVAILABLE(macos(10.14), ios(12.0), watchos(5.0)) API_UNAVAILABLE(tvos);
 
-@property (NS_NONATOMIC_IOSONLY, readonly) BOOL providesAppNotificationSettings __API_AVAILABLE(macos(10.14), ios(12.0), watchos(5.0)) __API_UNAVAILABLE(tvos);
+@property (NS_NONATOMIC_IOSONLY, readonly) BOOL providesAppNotificationSettings API_AVAILABLE(macos(10.14), ios(12.0), watchos(5.0)) API_UNAVAILABLE(tvos);
 
-@property (NS_NONATOMIC_IOSONLY, readonly) UNNotificationSetting announcementSetting __API_AVAILABLE(ios(13.0), watchos(6.0)) __API_UNAVAILABLE(macos, tvos);
+@property (NS_NONATOMIC_IOSONLY, readonly) UNNotificationSetting announcementSetting API_AVAILABLE(ios(13.0), watchos(6.0)) API_UNAVAILABLE(macos, tvos);
+
+@property (NS_NONATOMIC_IOSONLY, readonly) UNNotificationSetting timeSensitiveSetting API_AVAILABLE(macos(12.0), ios(15.0), watchos(8.0)) API_UNAVAILABLE(tvos);
+
+@property (NS_NONATOMIC_IOSONLY, readonly) UNNotificationSetting scheduledDeliverySetting API_AVAILABLE(macos(12.0), ios(15.0), watchos(8.0)) API_UNAVAILABLE(tvos);
 
 - (instancetype)init NS_UNAVAILABLE;
 
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationSound.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationSound.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationSound.h	2021-03-16 08:47:32.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationSound.h	2021-06-02 12:47:08.000000000 -0400
@@ -11,26 +11,26 @@
 
 typedef NSString *UNNotificationSoundName NS_EXTENSIBLE_STRING_ENUM;
 
-__API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0)) __API_UNAVAILABLE(tvos)
+API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0)) API_UNAVAILABLE(tvos)
 @interface UNNotificationSound : NSObject <NSCopying, NSSecureCoding>
 
 // The default sound used for notifications.
 @property(class, NS_NONATOMIC_IOSONLY, copy, readonly) UNNotificationSound *defaultSound;
 
 // The default sound used for critical alerts. Critical alerts will bypass the mute switch and Do Not Disturb.
-@property(class, NS_NONATOMIC_IOSONLY, copy, readonly) UNNotificationSound *defaultCriticalSound __API_AVAILABLE(ios(12.0), watchos(5.0)) __API_UNAVAILABLE(tvos);
+@property(class, NS_NONATOMIC_IOSONLY, copy, readonly) UNNotificationSound *defaultCriticalSound API_AVAILABLE(ios(12.0), watchos(5.0)) API_UNAVAILABLE(tvos);
 
 // The default sound used for critical alerts with a custom audio volume level. Critical alerts will bypass the mute switch and Do Not Disturb. The audio volume is expected to be between 0.0f and 1.0f.
-+ (instancetype)defaultCriticalSoundWithAudioVolume:(float)volume __API_AVAILABLE(ios(12.0), watchos(5.0)) __API_UNAVAILABLE(tvos);
++ (instancetype)defaultCriticalSoundWithAudioVolume:(float)volume API_AVAILABLE(ios(12.0), watchos(5.0)) API_UNAVAILABLE(tvos);
 
 // The sound file to be played for the notification. The sound must be in the Library/Sounds folder of the app's data container or the Library/Sounds folder of an app group data container. If the file is not found in a container, the system will look in the app's bundle.
-+ (instancetype)soundNamed:(UNNotificationSoundName)name __API_UNAVAILABLE(watchos, tvos);
++ (instancetype)soundNamed:(UNNotificationSoundName)name API_UNAVAILABLE(watchos, tvos);
 
 // The name of a sound file to be played for an critical alert. Critical alerts will bypass the mute switch and Do Not Disturb. The sound file must be contained in the app’s bundle or in the Library/Sounds folder of the app’s data container. If files exist in both locations then the file in the app’s data container will be preferred.
-+ (instancetype)criticalSoundNamed:(UNNotificationSoundName)name __API_AVAILABLE(ios(12.0)) __API_UNAVAILABLE(watchos, tvos);
++ (instancetype)criticalSoundNamed:(UNNotificationSoundName)name API_AVAILABLE(ios(12.0)) API_UNAVAILABLE(watchos, tvos);
 
 // The name of a sound file to be played for an critical alert with a custom audio volume level. Critical alerts will bypass the mute switch and Do Not Disturb. The sound file must be contained in the app’s bundle or in the Library/Sounds folder of the app’s data container. If files exist in both locations then the file in the app’s data container will be preferred. The audio volume is expected to be between 0.0f and 1.0f.
-+ (instancetype)criticalSoundNamed:(UNNotificationSoundName)name withAudioVolume:(float)volume __API_AVAILABLE(ios(12.0)) __API_UNAVAILABLE(watchos, tvos);
++ (instancetype)criticalSoundNamed:(UNNotificationSoundName)name withAudioVolume:(float)volume API_AVAILABLE(ios(12.0)) API_UNAVAILABLE(watchos, tvos);
 
 - (instancetype)init NS_UNAVAILABLE;
 
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationTrigger.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationTrigger.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationTrigger.h	2021-03-16 08:47:32.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationTrigger.h	2021-06-02 12:47:07.000000000 -0400
@@ -11,7 +11,7 @@
 
 NS_ASSUME_NONNULL_BEGIN
 
-__API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0), tvos(10.0))
+API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0), tvos(10.0))
 @interface UNNotificationTrigger : NSObject <NSCopying, NSSecureCoding>
 
 @property (NS_NONATOMIC_IOSONLY, readonly) BOOL repeats;
@@ -21,13 +21,13 @@
 @end
 
 // UNPushNotificationTrigger can be sent from a server using Apple Push Notification Service.
-__API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0), tvos(10.0))
+API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0), tvos(10.0))
 @interface UNPushNotificationTrigger : UNNotificationTrigger
 
 @end
 
 // UNTimeIntervalNotificationTrigger can be scheduled on the device to notify after the time interval, and optionally repeat.
-__API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0), tvos(10.0))
+API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0), tvos(10.0))
 @interface UNTimeIntervalNotificationTrigger : UNNotificationTrigger
 
 @property (NS_NONATOMIC_IOSONLY, readonly) NSTimeInterval timeInterval;
@@ -39,7 +39,7 @@
 @end
 
 // UNCalendarNotificationTrigger can be scheduled on the device to notify based on date and time values, and optionally repeat. For example, if a notification should be delivered at the next 8:00 AM then set the 'hour' property of dateComponents to 8. If the notification should be delivered every day at 8:00 AM then set repeats to YES.
-__API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0), tvos(10.0))
+API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0), tvos(10.0))
 @interface UNCalendarNotificationTrigger : UNNotificationTrigger
 
 @property (NS_NONATOMIC_IOSONLY, readonly, copy) NSDateComponents *dateComponents;
@@ -52,12 +52,12 @@
 @end
 
 // UNLocationNotificationTrigger can be scheduled on the device to notify when the user enters or leaves a geographic region. The identifier on CLRegion must be unique. Scheduling multiple UNNotificationRequests with different regions containing the same identifier will result in undefined behavior. The number of UNLocationNotificationTriggers that may be scheduled by an application at any one time is limited by the system. Applications must have "when-in-use" authorization through CoreLocation. See the CoreLocation documentation for more information.
-__API_AVAILABLE(ios(10.0), watchos(3.0)) __API_UNAVAILABLE(macos, tvos, macCatalyst)
+API_AVAILABLE(ios(10.0), watchos(3.0)) API_UNAVAILABLE(macos, tvos, macCatalyst)
 @interface UNLocationNotificationTrigger : UNNotificationTrigger
 
 @property (NS_NONATOMIC_IOSONLY, readonly, copy) CLRegion *region;
 
-+ (instancetype)triggerWithRegion:(CLRegion *)region repeats:(BOOL)repeats __API_UNAVAILABLE(watchos);
++ (instancetype)triggerWithRegion:(CLRegion *)region repeats:(BOOL)repeats API_AVAILABLE(watchos(8.0));
 
 @end
 
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNUserNotificationCenter.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNUserNotificationCenter.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNUserNotificationCenter.h	2021-03-16 13:56:27.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNUserNotificationCenter.h	2021-06-02 07:35:51.000000000 -0400
@@ -24,17 +24,18 @@
     UNAuthorizationOptionSound   = (1 << 1),
     UNAuthorizationOptionAlert   = (1 << 2),
     UNAuthorizationOptionCarPlay = (1 << 3),
-    UNAuthorizationOptionCriticalAlert __API_AVAILABLE(macos(10.14), ios(12.0), watchos(5.0), tvos(12.0)) = (1 << 4),
-    UNAuthorizationOptionProvidesAppNotificationSettings __API_AVAILABLE(macos(10.14), ios(12.0), watchos(5.0), tvos(12.0)) = (1 << 5),
-    UNAuthorizationOptionProvisional __API_AVAILABLE(macos(10.14), ios(12.0), watchos(5.0), tvos(12.0)) = (1 << 6),
-    UNAuthorizationOptionAnnouncement __API_AVAILABLE(ios(13.0), watchos(6.0)) __API_UNAVAILABLE(macos, tvos) = (1 << 7),
-} __API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0), tvos(10.0));
+    UNAuthorizationOptionCriticalAlert API_AVAILABLE(macos(10.14), ios(12.0), watchos(5.0), tvos(12.0)) = (1 << 4),
+    UNAuthorizationOptionProvidesAppNotificationSettings API_AVAILABLE(macos(10.14), ios(12.0), watchos(5.0), tvos(12.0)) = (1 << 5),
+    UNAuthorizationOptionProvisional API_AVAILABLE(macos(10.14), ios(12.0), watchos(5.0), tvos(12.0)) = (1 << 6),
+    UNAuthorizationOptionAnnouncement API_DEPRECATED("Announcement authorization is always included", ios(13.0, 15.0), watchos(6.0, 7.0)) API_UNAVAILABLE(macos, tvos) = (1 << 7),
+    UNAuthorizationOptionTimeSensitive API_DEPRECATED("Use time-sensitive entitlement", ios(15.0, 15.0), watchos(8.0, 8.0), macos(12.0, 12.0), tvos(15.0, 15.0)) = (1 << 8),
+} API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0), tvos(10.0));
 
-static const UNAuthorizationOptions UNAuthorizationOptionNone NS_SWIFT_UNAVAILABLE("Use [] instead.") __API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0), tvos(10.0)) = 0;
+static const UNAuthorizationOptions UNAuthorizationOptionNone NS_SWIFT_UNAVAILABLE("Use [] instead.") API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0), tvos(10.0)) = 0;
 
 // UNNotificationRequests can be scheduled using UNUserNotificationCenter. They can also be sent to the device from a server using Apple Push Notification Service. If the application is authorized then the UNNotificationRequest will be used to create a UNNotification and it will be used to notify the user. If the user acts on the UNNotification then a UNNotificationResponse will be sent to the application.
 
-__API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0), tvos(10.0))
+API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0), tvos(10.0))
 @interface UNUserNotificationCenter : NSObject
 
 // The delegate can only be set from an application
@@ -52,8 +53,8 @@
 - (void)requestAuthorizationWithOptions:(UNAuthorizationOptions)options completionHandler:(void (^)(BOOL granted, NSError *__nullable error))completionHandler;
 
 // Notification categories can be used to choose which actions will be displayed on which notifications.
-- (void)setNotificationCategories:(NSSet<UNNotificationCategory *> *)categories __API_UNAVAILABLE(tvos);
-- (void)getNotificationCategoriesWithCompletionHandler:(void(^)(NSSet<UNNotificationCategory *> *categories))completionHandler __API_UNAVAILABLE(tvos);
+- (void)setNotificationCategories:(NSSet<UNNotificationCategory *> *)categories API_UNAVAILABLE(tvos);
+- (void)getNotificationCategoriesWithCompletionHandler:(void(^)(NSSet<UNNotificationCategory *> *categories))completionHandler API_UNAVAILABLE(tvos);
 
 // The application's user notification settings
 - (void)getNotificationSettingsWithCompletionHandler:(void(^)(UNNotificationSettings *settings))completionHandler;
@@ -69,35 +70,35 @@
 - (void)removeAllPendingNotificationRequests;
 
 // Notifications that have been delivered and remain in Notification Center. Notifications triggered by location cannot be retrieved, but can be removed.
-- (void)getDeliveredNotificationsWithCompletionHandler:(void(^)(NSArray<UNNotification *> *notifications))completionHandler __API_UNAVAILABLE(tvos);
-- (void)removeDeliveredNotificationsWithIdentifiers:(NSArray<NSString *> *)identifiers __API_UNAVAILABLE(tvos);
-- (void)removeAllDeliveredNotifications __API_UNAVAILABLE(tvos);
+- (void)getDeliveredNotificationsWithCompletionHandler:(void(^)(NSArray<UNNotification *> *notifications))completionHandler API_UNAVAILABLE(tvos);
+- (void)removeDeliveredNotificationsWithIdentifiers:(NSArray<NSString *> *)identifiers API_UNAVAILABLE(tvos);
+- (void)removeAllDeliveredNotifications API_UNAVAILABLE(tvos);
 
 @end
 
 typedef NS_OPTIONS(NSUInteger, UNNotificationPresentationOptions) {
     UNNotificationPresentationOptionBadge   = (1 << 0),
     UNNotificationPresentationOptionSound   = (1 << 1),
-    UNNotificationPresentationOptionAlert __API_DEPRECATED("Use UNNotificationPresentationOptionList | UNNotificationPresentationOptionBanner", macos(10.14, 11.0), ios(10.0, 14.0), watchos(3.0, 7.0), tvos(10.0, 14.0)) = (1 << 2),
-    UNNotificationPresentationOptionList __API_AVAILABLE(macos(11.0), ios(14.0), watchos(7.0), tvos(14.0)) = (1 << 3),
-    UNNotificationPresentationOptionBanner __API_AVAILABLE(macos(11.0), ios(14.0), watchos(7.0), tvos(14.0)) = (1 << 4),
-} __API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0), tvos(10.0));
+    UNNotificationPresentationOptionAlert API_DEPRECATED_WITH_REPLACEMENT("UNNotificationPresentationOptionList | UNNotificationPresentationOptionBanner", macos(10.14, 11.0), ios(10.0, 14.0), watchos(3.0, 7.0), tvos(10.0, 14.0)) = (1 << 2),
+    UNNotificationPresentationOptionList API_AVAILABLE(macos(11.0), ios(14.0), watchos(7.0), tvos(14.0)) = (1 << 3),
+    UNNotificationPresentationOptionBanner API_AVAILABLE(macos(11.0), ios(14.0), watchos(7.0), tvos(14.0)) = (1 << 4),
+} API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0), tvos(10.0));
 
-static const UNNotificationPresentationOptions UNNotificationPresentationOptionNone NS_SWIFT_UNAVAILABLE("Use [] instead.") __API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0), tvos(10.0)) = 0;
+static const UNNotificationPresentationOptions UNNotificationPresentationOptionNone NS_SWIFT_UNAVAILABLE("Use [] instead.") API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0), tvos(10.0)) = 0;
 
-__API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0), tvos(10.0))
+API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0), tvos(10.0))
 @protocol UNUserNotificationCenterDelegate <NSObject>
 
 @optional
 
 // The method will be called on the delegate only if the application is in the foreground. If the method is not implemented or the handler is not called in a timely manner then the notification will not be presented. The application can choose to have the notification presented as a sound, badge, alert and/or in the notification list. This decision should be based on whether the information in the notification is otherwise visible to the user.
-- (void)userNotificationCenter:(UNUserNotificationCenter *)center willPresentNotification:(UNNotification *)notification withCompletionHandler:(void (^)(UNNotificationPresentationOptions options))completionHandler __API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0), tvos(10.0));
+- (void)userNotificationCenter:(UNUserNotificationCenter *)center willPresentNotification:(UNNotification *)notification withCompletionHandler:(void (^)(UNNotificationPresentationOptions options))completionHandler API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0), tvos(10.0));
 
 // The method will be called on the delegate when the user responded to the notification by opening the application, dismissing the notification or choosing a UNNotificationAction. The delegate must be set before the application returns from application:didFinishLaunchingWithOptions:.
-- (void)userNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse *)response withCompletionHandler:(void(^)(void))completionHandler __API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0)) __API_UNAVAILABLE(tvos);
+- (void)userNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse *)response withCompletionHandler:(void(^)(void))completionHandler API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0)) API_UNAVAILABLE(tvos);
 
 // The method will be called on the delegate when the application is launched in response to the user's request to view in-app notification settings. Add UNAuthorizationOptionProvidesAppNotificationSettings as an option in requestAuthorizationWithOptions:completionHandler: to add a button to inline notification settings view and the notification settings view in Settings. The notification will be nil when opened from Settings.
-- (void)userNotificationCenter:(UNUserNotificationCenter *)center openSettingsForNotification:(nullable UNNotification *)notification __API_AVAILABLE(macos(10.14), ios(12.0)) __API_UNAVAILABLE(watchos, tvos);
+- (void)userNotificationCenter:(UNUserNotificationCenter *)center openSettingsForNotification:(nullable UNNotification *)notification API_AVAILABLE(macos(10.14), ios(12.0)) API_UNAVAILABLE(watchos, tvos);
 
 @end
 
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.h	2021-03-16 08:41:03.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.h	2021-05-22 07:25:26.000000000 -0400
@@ -9,6 +9,7 @@
 #import <UserNotifications/UNError.h>
 #import <UserNotifications/UNNotification.h>
 #import <UserNotifications/UNNotificationAction.h>
+#import <UserNotifications/UNNotificationActionIcon.h>
 #import <UserNotifications/UNNotificationAttachment.h>
 #import <UserNotifications/UNNotificationCategory.h>
 #import <UserNotifications/UNNotificationContent.h>
Clone this wiki locally