Skip to content

UIKit watchOS xcode14.0 beta1

Manuel de la Pena edited this page Aug 18, 2022 · 5 revisions

#UIKit.framework https://github.com/xamarin/xamarin-macios/pull/15694

diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSAttributedString.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSAttributedString.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSAttributedString.h	2022-02-23 07:16:36.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSAttributedString.h	2022-05-31 15:05:17.000000000 -0400
@@ -13,7 +13,7 @@
 @class NSFileWrapper;
 @class NSURL;
 
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
 
 #if UIKIT_HAS_UIFOUNDATION_SYMBOLS
 
@@ -214,7 +214,7 @@
 
 #endif // UIKIT_HAS_UIFOUNDATION_SYMBOLS
 
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
 
 #else
 #import <UIKitCore/NSAttributedString.h>
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSDataAsset.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSDataAsset.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSDataAsset.h	2022-02-23 07:16:36.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSDataAsset.h	2022-05-31 15:04:39.000000000 -0400
@@ -9,7 +9,7 @@
 #import <Foundation/Foundation.h>
 #import <UIKit/UIKitDefines.h>
 
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
 
 #if !__NSDATAASSET_SHARED_SECTION__
 #define __NSDATAASSET_SHARED_SECTION__ 1
@@ -20,7 +20,8 @@
 
 /// NSDataAsset represents the contents of data entries in your asset catalog.
 /// Data assets are not in the same class of stored content as images, so you cannot use a data asset to get image data for an image.
-UIKIT_EXTERN API_AVAILABLE(ios(9.0), macos(10.11), tvos(9.0), watchos(2.0)) @interface NSDataAsset : NSObject<NSCopying>
+UIKIT_EXTERN API_AVAILABLE(ios(9.0), macos(10.11), tvos(9.0), watchos(2.0)) NS_SWIFT_SENDABLE
+@interface NSDataAsset : NSObject<NSCopying>
 
 - (instancetype)init NS_UNAVAILABLE;
 
@@ -41,7 +42,7 @@
 #endif // UIKIT_HAS_UIFOUNDATION_SYMBOLS
 #endif // __NSDATAASSET_SHARED_SECTION__
 
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
 
 #else
 #import <UIKitCore/NSDataAsset.h>
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSItemProvider+UIKitAdditions.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSItemProvider+UIKitAdditions.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSItemProvider+UIKitAdditions.h	2022-02-23 07:16:37.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSItemProvider+UIKitAdditions.h	2022-05-31 15:04:40.000000000 -0400
@@ -11,7 +11,7 @@
 #import <CoreGraphics/CoreGraphics.h>
 
 
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
 
 UIKIT_SWIFT_FORWARD_DECLARE(@class NSItemProvider)
 
@@ -43,7 +43,7 @@
 
 @end
 
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
 
 #else
 #import <UIKitCore/NSItemProvider+UIKitAdditions.h>
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSParagraphStyle.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSParagraphStyle.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSParagraphStyle.h	2022-02-23 07:13:54.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSParagraphStyle.h	2022-05-31 14:50:23.000000000 -0400
@@ -12,8 +12,10 @@
 #import <UIKit/UIKitDefines.h>
 #import <UIKit/NSText.h>
 
+@class NSTextList;
+
 #if TARGET_OS_IPHONE
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
 
 #if !__NSPARAGRAPH_STYLE_SHARED_SECTION__
 #define __NSPARAGRAPH_STYLE_SHARED_SECTION__ 1
@@ -96,6 +98,8 @@
 @property (readonly,copy, NS_NONATOMIC_IOSONLY) NSArray<NSTextTab *> *tabStops API_AVAILABLE(macos(10.0), ios(7.0)); // An array of NSTextTabs. Contents should be ordered by location. The default value is an array of 12 left-aligned tabs at 28pt interval
 @property (readonly, NS_NONATOMIC_IOSONLY) CGFloat defaultTabInterval API_AVAILABLE(macos(10.0), ios(7.0)); // The default tab interval used for locations beyond the last element in tabStops
 
+@property (readonly, copy, NS_NONATOMIC_IOSONLY) NSArray<NSTextList *> *textLists API_AVAILABLE(macos(10.0), ios(7.0), tvos(9.0)) API_UNAVAILABLE(watchos);     // Array to specify the text lists containing the paragraph, nested from outermost to innermost.
+
 @property (readonly, NS_NONATOMIC_IOSONLY) BOOL allowsDefaultTighteningForTruncation API_AVAILABLE(macos(10.11), ios(9.0)); // Tightens inter-character spacing in attempt to fit lines wider than the available space if the line break mode is one of the truncation modes before starting to truncate. NO by default. The maximum amount of tightening performed is determined by the system based on contexts such as font, line width, etc.
 
 @property (readonly, NS_NONATOMIC_IOSONLY) NSLineBreakStrategy lineBreakStrategy API_AVAILABLE(macos(10.11), ios(9.0)); // Specifies the line break strategies that may be used for laying out the paragraph.  The default value is NSLineBreakStrategyNone.
@@ -124,6 +128,7 @@
 @property (NS_NONATOMIC_IOSONLY) CGFloat defaultTabInterval API_AVAILABLE(macos(10.0), ios(7.0));
 @property (NS_NONATOMIC_IOSONLY) BOOL allowsDefaultTighteningForTruncation API_AVAILABLE(macos(10.11), ios(9.0));
 @property (NS_NONATOMIC_IOSONLY) NSLineBreakStrategy lineBreakStrategy API_AVAILABLE(macos(10.11), ios(9.0));
+@property (NS_NONATOMIC_IOSONLY, copy) NSArray<NSTextList *> *textLists API_AVAILABLE(macos(10.0), ios(7.0), tvos(9.0)) API_UNAVAILABLE(watchos);
 
 - (void)addTabStop:(NSTextTab *)anObject API_AVAILABLE(macos(10.0), ios(9.0));
 - (void)removeTabStop:(NSTextTab *)anObject API_AVAILABLE(macos(10.0), ios(9.0));
@@ -132,7 +137,7 @@
 
 @end
 
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
 #elif TARGET_OS_OSX
 #import <AppKit/NSParagraphStyle.h>
 #endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSShadow.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSShadow.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSShadow.h	2022-02-23 07:16:36.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSShadow.h	2022-05-31 15:04:39.000000000 -0400
@@ -10,7 +10,7 @@
 #import <UIKit/UIKitDefines.h>
 #import <CoreGraphics/CoreGraphics.h>
 
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
 
 #if UIKIT_HAS_UIFOUNDATION_SYMBOLS
 
@@ -33,7 +33,7 @@
 
 #endif // UIKIT_HAS_UIFOUNDATION_SYMBOLS
 
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
 
 #else
 #import <UIKitCore/NSShadow.h>
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSStringDrawing.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSStringDrawing.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSStringDrawing.h	2022-02-23 10:59:25.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSStringDrawing.h	2022-06-03 18:10:06.000000000 -0400
@@ -13,7 +13,7 @@
 
 @class NSStringDrawingContext;
 
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
 
 #if UIKIT_HAS_UIFOUNDATION_SYMBOLS
 
@@ -74,7 +74,7 @@
 
 #endif // UIKIT_HAS_UIFOUNDATION_SYMBOLS
 
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
 
 #else
 #import <UIKitCore/NSStringDrawing.h>
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSText.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSText.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSText.h	2022-02-23 07:16:37.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSText.h	2022-05-31 15:04:40.000000000 -0400
@@ -13,7 +13,7 @@
 #endif
 #import <UIKit/UIKitDefines.h>
 
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
 
 #if !__NSTEXT_SHARED_SECTION__
 #define __NSTEXT_SHARED_SECTION__ 1
@@ -45,7 +45,7 @@
 UIKIT_EXTERN NSTextAlignment NSTextAlignmentFromCTTextAlignment(CTTextAlignment ctTextAlignment) API_AVAILABLE(ios(6.0));
 #endif
 
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
 #elif TARGET_OS_OSX
 #import <AppKit/NSText.h>
 #endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSTextAttachment.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSTextAttachment.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSTextAttachment.h	1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSTextAttachment.h	2022-05-31 15:05:11.000000000 -0400
@@ -0,0 +1,138 @@
+#if (defined(USE_UIKIT_PUBLIC_HEADERS) && USE_UIKIT_PUBLIC_HEADERS) || !__has_include(<UIFoundation/NSTextAttachment.h>)
+#import <UIKit/UIKitDefines.h>
+
+//
+//  NSTextAttachment.h
+//  UIKit
+//
+//  Copyright (c) 2011-2021, Apple Inc. All rights reserved.
+//
+
+#import <Foundation/NSAttributedString.h>
+#import <CoreGraphics/CGGeometry.h>
+
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
+
+enum {
+    NSAttachmentCharacter API_AVAILABLE(macos(10.0), ios(7.0), tvos(9.0)) API_UNAVAILABLE(watchos) = 0xFFFC // Replacement character is used for attachments
+};
+
+@class NSTextContainer;
+@class NSLayoutManager;
+@class UIImage;
+@class UIView;
+@class NSFileWrapper;
+@class NSTextAttachmentViewProvider;
+@class NSTextLayoutManager;
+@protocol NSTextLocation;
+
+
+// This protocol defines the interface to attachment objects from NSLayoutManager
+@protocol NSTextAttachmentContainer <NSObject>
+// This protocol is available only for Objective-C 2 or later architecture
+
+// Returns the image object rendered by NSLayoutManager at imageBounds inside textContainer.  It should return an image appropriate for the target rendering context derived by arguments to this method.  The NSTextAttachment implementation returns -image when non-nil.  If -image==nil, it returns an image based on -contents and -fileType properties.
+- (nullable UIImage *)imageForBounds:(CGRect)imageBounds textContainer:(nullable NSTextContainer *)textContainer characterIndex:(NSUInteger)charIndex  API_AVAILABLE(macos(10.11), ios(7.0), tvos(9.0)) API_UNAVAILABLE(watchos);
+
+
+// Returns the layout bounds to the layout manager.  The bounds origin is interpreted to match position inside lineFrag.  The NSTextAttachment implementation returns -bounds if not CGRectZero; otherwise, it derives the bounds value from -[image size].  Conforming objects can implement more sophisticated logic for negotiating the frame size based on the available container space and proposed line fragment rect.
+- (CGRect)attachmentBoundsForTextContainer:(nullable NSTextContainer *)textContainer proposedLineFragment:(CGRect)lineFrag glyphPosition:(CGPoint)position characterIndex:(NSUInteger)charIndex API_AVAILABLE(macos(10.11), ios(7.0), tvos(9.0)) API_UNAVAILABLE(watchos);
+
+@end
+
+// This protocol defines the interface to attachment objects from NSTextLayoutManager
+@protocol NSTextAttachmentLayout <NSObject>
+
+// Returns the image object rendered at bounds inside textContainer.  It should return an image appropriate for the target rendering context derived by arguments to this method.  The NSTextAttachment implementation returns -image when non-nil.  If -image==nil, it returns an image based on -contents and -fileType properties.
+- (nullable UIImage *)imageForBounds:(CGRect)bounds attributes:(NSDictionary<NSAttributedStringKey, id> *)attributes location:(id <NSTextLocation>)location textContainer:(nullable NSTextContainer *)textContainer API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0)) API_UNAVAILABLE(watchos);
+
+// Returns the layout bounds. The bounds origin is interpreted to match position inside proposedLineFragment. The NSTextAttachment implementation returns -bounds if not CGRectZero; otherwise, it derives the bounds value from image.size. Conforming objects can implement more sophisticated logic for negotiating the frame size based on the available container space and proposed line fragment rect.
+- (CGRect)attachmentBoundsForAttributes:(NSDictionary<NSAttributedStringKey, id> *)attributes location:(id <NSTextLocation>)location textContainer:(nullable NSTextContainer *)textContainer proposedLineFragment:(CGRect)proposedLineFragment position:(CGPoint)position API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0)) API_UNAVAILABLE(watchos);
+
+// Returns the text attachment view provider corresponding to -fileType. The default implementation queries the text attachment view provider class via +[NSTextAttachment textAttachmentViewProviderClassForFileType:]. When non-nil, it instantiates a view, then, fills properties declared in NSTextAttachmentViewProvider if implemented
+- (nullable NSTextAttachmentViewProvider *)viewProviderForParentView:(nullable UIView *)parentView location:(id <NSTextLocation>)location textContainer:(nullable NSTextContainer *)textContainer API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0)) API_UNAVAILABLE(watchos);
+@end
+
+API_AVAILABLE(macos(10.0), ios(7.0), tvos(9.0)) API_UNAVAILABLE(watchos) @interface NSTextAttachment : NSObject <NSTextAttachmentLayout, NSTextAttachmentContainer, NSSecureCoding>
+
+/**************************** Initialization ****************************/
+
+// Designated initializer.  Both arguments can be nil.  When contentData==nil || uti==nil, the receiver is consider to be an attachment without document contents.  In this case, the NSAttributedString methods writing external file format tries to save the return value of -[NSTextAttachment image] instead.
+- (instancetype)initWithData:(nullable NSData *)contentData ofType:(nullable NSString *)uti NS_DESIGNATED_INITIALIZER API_AVAILABLE(macos(10.11), ios(7.0), tvos(9.0)) API_UNAVAILABLE(watchos);
+
+
+
+/**************************** Content properties ****************************/
+
+// These two properties define the contents for the text attachment.  Modifying these properties have a side effect of invalidating -image and -fileWrapper properties. -fileType is an UTI describing the format for -contents.
+@property (nullable, copy, NS_NONATOMIC_IOSONLY) NSData *contents API_AVAILABLE(macos(10.11), ios(7.0), tvos(9.0)) API_UNAVAILABLE(watchos);
+@property (nullable, copy, NS_NONATOMIC_IOSONLY) NSString *fileType API_AVAILABLE(macos(10.11), ios(7.0), tvos(9.0)) API_UNAVAILABLE(watchos);
+
+/**************************** Rendering/layout properties ****************************/
+
+// Image representing the text attachment contents. Modifying this property invalidates -contents, -fileType, and -FileWrapper properties.
+@property (nullable, strong, NS_NONATOMIC_IOSONLY) UIImage *image API_AVAILABLE(macos(10.11), ios(7.0), tvos(9.0)) API_UNAVAILABLE(watchos);
+
+// Defines the layout bounds of the receiver's graphical representation in the text coordinate system.  The origin is at the glyph location on the text baseline.  The default value is CGRectZero.
+@property (NS_NONATOMIC_IOSONLY) CGRect bounds API_AVAILABLE(macos(10.11), ios(7.0), tvos(9.0)) API_UNAVAILABLE(watchos);
+
+/**************************** Non-image contents properties ****************************/
+
+// Optionally, NSTextAttachment can be associated with a file wrapper. Modifying this property has a side effect of invalidating -image, -contents, and fileType properties.
+@property (nullable, strong, NS_NONATOMIC_IOSONLY) NSFileWrapper *fileWrapper;
+
+
+#pragma mark Advanced Layout Properties
+// Layout padding before and after the text attachment bounds. The layout and rendering bounds X origin gets inset by the padding value. This affects the relationship between the text attachment bounds. 0.0 by default
+@property CGFloat lineLayoutPadding API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0)) API_UNAVAILABLE(watchos);
+
+
+#pragma mark View-based attachments
+// Factory methods for defining the mapping between UTI and text attachment view provider class
++ (nullable Class)textAttachmentViewProviderClassForFileType:(NSString *)fileType API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0)) API_UNAVAILABLE(watchos);
++ (void)registerTextAttachmentViewProviderClass:(Class)textAttachmentViewProviderClass forFileType:(NSString *)fileType API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0)) API_UNAVAILABLE(watchos);
+
+// When YES, the text attachment tries to use a text attachment view returned by -viewProviderForParentView:location:textContainer:. YES by default
+@property BOOL allowsTextAttachmentView API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0)) API_UNAVAILABLE(watchos);
+
+// Returns YES if the text attachment is configured to use text attachment views. By default, it checks -allowsTextAttachmentView, +textAttachmentViewClassForFileType:, and its contents
+@property (readonly) BOOL usesTextAttachmentView API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0)) API_UNAVAILABLE(watchos);
+@end
+
+@interface NSAttributedString (NSAttributedStringAttachmentConveniences)
+// A convenience method for creating an attributed string containing attachment using NSAttachmentCharacter as the base character.
++ (NSAttributedString *)attributedStringWithAttachment:(NSTextAttachment *)attachment API_AVAILABLE(macos(10.0), ios(7.0), tvos(9.0)) API_UNAVAILABLE(watchos);
+@end
+
+API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0)) API_UNAVAILABLE(watchos)
+@interface NSTextAttachmentViewProvider : NSObject
+- (instancetype)initWithTextAttachment:(NSTextAttachment *)textAttachment parentView:(nullable UIView *)parentView textLayoutManager:(nullable NSTextLayoutManager *)textLayoutManager location:(id <NSTextLocation>)location NS_DESIGNATED_INITIALIZER;
+
+- (instancetype)init NS_UNAVAILABLE;
++ (instancetype)new NS_UNAVAILABLE;
+
+@property (readonly, weak) NSTextAttachment *textAttachment;
+@property (readonly, weak, nullable) NSTextLayoutManager *textLayoutManager;
+
+@property (readonly, strong) id <NSTextLocation> location;
+
+// View instantiation
+// The getter first invokes loadView if the view hasn't been set yet. Subclasses must call super if they override the setter or getter.
+@property(nullable, strong) UIView *view;
+
+// This is where subclasses should create their custom view hierarchy. Should never be called directly.
+- (void)loadView;
+
+// This property determines the text attachment bounds policy. If YES, -[NSTextAttachment attachmentBoundsForAttributes:location:textContainer:proposedLineFragment:position:] consults the text attachment view provider for determining the bounds instead of using -bounds. NO by default
+@property BOOL tracksTextAttachmentViewBounds;
+
+// Invoked from -[NSTextAttachment attachmentBoundsForAttributes:location:textContainer:proposedLineFragment:position:]
+- (CGRect)attachmentBoundsForAttributes:(NSDictionary<NSAttributedStringKey, id> *)attributes location:(id <NSTextLocation>)location textContainer:(nullable NSTextContainer *)textContainer proposedLineFragment:(CGRect)proposedLineFragment position:(CGPoint)position;
+@end
+
+
+
+NS_HEADER_AUDIT_END(nullability, sendability)
+#else
+#import <UIFoundation/NSTextAttachment.h>
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityConstants.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityConstants.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityConstants.h	2022-02-23 07:16:36.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityConstants.h	2022-05-31 14:52:48.000000000 -0400
@@ -9,7 +9,7 @@
 #import <Foundation/Foundation.h>
 #import <UIKit/UIKitDefines.h>
 
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
 
 /*
  Accessibility Traits
@@ -297,7 +297,7 @@
 typedef struct UIAccessibility { void *_reserved; } UIAccessibility;
 #endif
 
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
 
 
 #else
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIBezierPath.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIBezierPath.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIBezierPath.h	2022-02-23 07:16:36.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIBezierPath.h	2022-05-31 15:04:39.000000000 -0400
@@ -12,7 +12,7 @@
 
 #import <UIKit/UIGeometry.h>
 
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
 
 UIKIT_EXTERN API_AVAILABLE(ios(3.2)) @interface UIBezierPath : NSObject<NSCopying, NSSecureCoding>
 
@@ -87,7 +87,7 @@
 
 @end
 
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
 
 #else
 #import <UIKitCore/UIBezierPath.h>
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIColor.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIColor.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIColor.h	2022-02-23 07:16:36.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIColor.h	2022-05-31 14:50:20.000000000 -0400
@@ -15,12 +15,12 @@
 #import <UIKit/UIKitDefines.h>
 
 
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
 
 @class UIImage;
 @class UITraitCollection;
 
-UIKIT_EXTERN API_AVAILABLE(ios(2.0))
+UIKIT_EXTERN API_AVAILABLE(ios(2.0)) NS_SWIFT_SENDABLE
 @interface UIColor : NSObject <NSSecureCoding, NSCopying>
 
 // Convenience methods for creating colors
@@ -125,7 +125,7 @@
 
 @end
 
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
 
 #else
 #import <UIKitCore/UIColor.h>
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIFont.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIFont.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIFont.h	2022-02-23 07:16:37.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIFont.h	2022-05-31 15:05:19.000000000 -0400
@@ -13,9 +13,10 @@
 
 @class UITraitCollection;
 
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
 
-UIKIT_EXTERN API_AVAILABLE(ios(2.0)) @interface UIFont : NSObject <NSCopying, NSSecureCoding>
+UIKIT_EXTERN API_AVAILABLE(ios(2.0)) NS_SWIFT_SENDABLE
+@interface UIFont : NSObject <NSCopying, NSSecureCoding>
 
 // Returns an instance of the font associated with the text style and scaled appropriately for the user's selected content size category. See UIFontDescriptor.h for the complete list.
 + (UIFont *)preferredFontForTextStyle:(UIFontTextStyle)style API_AVAILABLE(ios(7.0));
@@ -71,7 +72,7 @@
 
 @end
 
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
 
  
 
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIFontDescriptor.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIFontDescriptor.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIFontDescriptor.h	2022-02-23 07:10:53.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIFontDescriptor.h	2022-05-31 15:04:39.000000000 -0400
@@ -11,7 +11,7 @@
 #import <UIKit/UIKitDefines.h>
 
 
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
 
 typedef NS_OPTIONS(uint32_t, UIFontDescriptorSymbolicTraits) {
     /* Symbolic Font Traits (Typeface info - lower 16 bits of UIFontDescriptorSymbolicTraits) */
@@ -61,7 +61,7 @@
 
 @class NSMutableDictionary, NSDictionary, NSArray, NSSet, UITraitCollection;
 
-UIKIT_EXTERN API_AVAILABLE(ios(7.0))
+UIKIT_EXTERN API_AVAILABLE(ios(7.0)) NS_SWIFT_SENDABLE
 @interface UIFontDescriptor : NSObject <NSCopying, NSSecureCoding>
 
 - (instancetype)init;
@@ -176,7 +176,7 @@
 UIKIT_EXTERN UIFontTextStyle const UIFontTextStyleCaption1 API_AVAILABLE(ios(7.0));
 UIKIT_EXTERN UIFontTextStyle const UIFontTextStyleCaption2 API_AVAILABLE(ios(7.0));
 
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
 
 
 #else
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIFontMetrics.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIFontMetrics.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIFontMetrics.h	2022-02-23 07:16:36.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIFontMetrics.h	2022-05-31 15:04:40.000000000 -0400
@@ -11,9 +11,9 @@
 #import <UIKit/UIKitDefines.h>
 #import <UIKit/UIFont.h>
 
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
 
-UIKIT_EXTERN API_AVAILABLE(ios(11.0),tvos(11.0),watchos(4.0))
+UIKIT_EXTERN API_AVAILABLE(ios(11.0),tvos(11.0),watchos(4.0)) NS_SWIFT_SENDABLE
 @interface UIFontMetrics : NSObject
 
 @property (class, readonly, strong) UIFontMetrics *defaultMetrics;
@@ -33,7 +33,7 @@
 
 @end
 
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
 
 #else
 #import <UIKitCore/UIFontMetrics.h>
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIGeometry.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIGeometry.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIGeometry.h	2022-02-23 08:00:20.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIGeometry.h	2022-06-03 18:09:54.000000000 -0400
@@ -11,7 +11,7 @@
 #import <CoreGraphics/CoreGraphics.h>
 #import <UIKit/UIKitDefines.h>
 
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
 
 UIKIT_SWIFT_FORWARD_DECLARE(@class NSCoder)
 UIKIT_SWIFT_FORWARD_DECLARE(struct CGRect)
@@ -21,7 +21,7 @@
 #else
 typedef struct __attribute__((objc_boxable)) UIEdgeInsets {
     CGFloat top, left, bottom, right;  // specify amount to inset (positive) for each of the edges. values can be negative to 'outset'
-} UIEdgeInsets;
+} UIEdgeInsets NS_SWIFT_SENDABLE;
 #endif // FOUNDATION_HAS_DIRECTIONAL_GEOMETRY
 
 /* Geometry type declarations marked with `#ifndef FOUNDATION_HAS_DIRECTIONAL_GEOMETRY` are being relocated to Foundation/NSGeometry.h */
@@ -33,14 +33,14 @@
  */
 typedef struct __attribute__((objc_boxable)) NSDirectionalEdgeInsets {
     CGFloat top, leading, bottom, trailing;  // specify amount to inset (positive) for each of the edges. values can be negative to 'outset'
-} NSDirectionalEdgeInsets API_AVAILABLE(ios(11.0),tvos(11.0),watchos(4.0));
+} NSDirectionalEdgeInsets API_AVAILABLE(ios(11.0),tvos(11.0),watchos(4.0)) NS_SWIFT_SENDABLE;
 
 #endif // UIKIT_HAS_UIFOUNDATION_SYMBOLS
 #endif // FOUNDATION_HAS_DIRECTIONAL_GEOMETRY
 
 typedef struct __attribute__((objc_boxable)) UIOffset {
     CGFloat horizontal, vertical; // specify amount to offset a position, positive for right or down, negative for left or up
-} UIOffset;
+} UIOffset NS_SWIFT_SENDABLE;
 
 typedef NS_OPTIONS(NSUInteger, UIRectEdge) {
     UIRectEdgeNone   = 0,
@@ -256,7 +256,7 @@
 
 @end
 
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
 
 #else
 #import <UIKitCore/UIGeometry.h>
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIGraphics.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIGraphics.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIGraphics.h	2022-02-23 07:16:36.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIGraphics.h	2022-05-31 15:04:39.000000000 -0400
@@ -10,7 +10,7 @@
 #import <CoreGraphics/CoreGraphics.h>
 #import <UIKit/UIKitDefines.h>
 
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
 
 @class UIImage;
 
@@ -50,7 +50,7 @@
 UIKIT_EXTERN void UIGraphicsAddPDFContextDestinationAtPoint(NSString *name, CGPoint point) API_AVAILABLE(ios(3.2));
 UIKIT_EXTERN void UIGraphicsSetPDFContextDestinationForRect(NSString *name, CGRect rect) API_AVAILABLE(ios(3.2));
 
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
 
 #else
 #import <UIKitCore/UIGraphics.h>
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImage.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImage.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImage.h	2022-02-23 10:59:07.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImage.h	2022-05-31 14:52:42.000000000 -0400
@@ -15,11 +15,13 @@
 #import <UIKit/UIColor.h>
 #import <UIKit/UIGeometry.h>
 #import <UIKit/NSItemProvider+UIKitAdditions.h>
-#if __has_include(<UIKit/NSTextAttachment.h>)
+#if __has_include(<UIFoundation/NSTextAttachment.h>)
+#import <UIFoundation/NSTextAttachment.h>
+#else
 #import <UIKit/NSTextAttachment.h>
 #endif
 
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
 
 #if __has_include(<UIKit/UITraitCollection.h>)
 @class UITraitCollection, UIImageAsset;
@@ -71,7 +73,8 @@
 @class UIImageConfiguration;
 @class UIImageSymbolConfiguration;
 
-UIKIT_EXTERN API_AVAILABLE(ios(2.0)) @interface UIImage : NSObject <NSSecureCoding> 
+UIKIT_EXTERN API_AVAILABLE(ios(2.0)) NS_SWIFT_SENDABLE
+@interface UIImage : NSObject <NSSecureCoding>
 
 /*
  * Retrieve a system-provided image with the specified name.
@@ -85,17 +88,33 @@
  */
 + (nullable UIImage *)systemImageNamed:(NSString *)name API_AVAILABLE(ios(13.0),tvos(13.0),watchos(6.0));
 + (nullable UIImage *)systemImageNamed:(NSString *)name withConfiguration:(nullable UIImageConfiguration *)configuration API_AVAILABLE(ios(13.0),tvos(13.0),watchos(6.0));
-
 #if __has_include(<UIKit/UITraitCollection.h>)
 + (nullable UIImage *)systemImageNamed:(NSString *)name compatibleWithTraitCollection:(nullable UITraitCollection *)traitCollection API_AVAILABLE(ios(13.0),tvos(13.0),watchos(6.0));
 #endif
-
+/**
+ * Retrieve a system-provided image with the specified name and variable value (between 0 and 1).
+ *
+ * This will only return system-provided images. If you want a custom image as defined in your own catalogs,
+ * you should use @c +imageNamed:inBundle:variableValue:withConfiguration:.
+ *
+ * Returns @c nil if an image with specified name doesn't exist.
+ */
++ (nullable UIImage *)systemImageNamed:(NSString *)name variableValue:(double)value withConfiguration:(nullable UIImageConfiguration *)configuration API_AVAILABLE(ios(16.0), macCatalyst(16.0), tvos(16.0), watchos(9.0));
 
 + (nullable UIImage *)imageNamed:(NSString *)name;      // load from main bundle
 + (nullable UIImage *)imageNamed:(NSString *)name inBundle:(nullable NSBundle *)bundle withConfiguration:(nullable UIImageConfiguration *)configuration API_AVAILABLE(ios(13.0),tvos(13.0),watchos(6.0));
 #if __has_include(<UIKit/UITraitCollection.h>)
 + (nullable UIImage *)imageNamed:(NSString *)name inBundle:(nullable NSBundle *)bundle compatibleWithTraitCollection:(nullable UITraitCollection *)traitCollection API_AVAILABLE(ios(8.0));
 #endif
+/**
+ * Retrieve a image with the specified name and variable value (between 0 and 1).
+ *
+ * This will only return custom images defined in your own catalogs. If you want a system-provided image,
+ * you should use @c +systemImageNamed:variableValue:withConfiguration:.
+ *
+ * Returns @c nil if an image with specified name doesn't exist.
+ */
++ (nullable UIImage *)imageNamed:(NSString *)name inBundle:(nullable NSBundle *)bundle variableValue:(double)value withConfiguration:(nullable UIImageConfiguration *)configuration API_AVAILABLE(ios(16.0), macCatalyst(16.0), tvos(16.0), watchos(9.0));
 
 + (nullable UIImage *)imageWithContentsOfFile:(NSString *)path;
 + (nullable UIImage *)imageWithData:(NSData *)data;
@@ -312,7 +331,7 @@
 
 @end
 
-#if __has_include(<UIKit/NSTextAttachment.h>) && UIKIT_HAS_UIFOUNDATION_SYMBOLS
+#if UIKIT_HAS_UIFOUNDATION_SYMBOLS
 @interface NSTextAttachment (UIImage)
 
 + (NSTextAttachment *)textAttachmentWithImage:(UIImage *)image API_AVAILABLE(ios(13.0),tvos(13.0));
@@ -344,7 +363,7 @@
 UIKIT_EXTERN  NSData * __nullable UIImagePNGRepresentation(UIImage * __nonnull image);                               // return image as PNG. May return nil if image has no CGImageRef or invalid bitmap format
 UIKIT_EXTERN  NSData * __nullable UIImageJPEGRepresentation(UIImage * __nonnull image, CGFloat compressionQuality);  // return image as JPEG. May return nil if image has no CGImageRef or invalid bitmap format. compression is 0(most)..1(least)
 
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
 
 
 #else
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImageConfiguration.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImageConfiguration.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImageConfiguration.h	2022-02-23 07:16:36.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImageConfiguration.h	2022-05-31 15:04:39.000000000 -0400
@@ -13,9 +13,9 @@
 @class UITraitCollection;
 #endif
 
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
 
-UIKIT_EXTERN API_AVAILABLE(ios(13.0), tvos(13.0), watchos(6.0))
+UIKIT_EXTERN API_AVAILABLE(ios(13.0), tvos(13.0), watchos(6.0)) NS_SWIFT_SENDABLE
 @interface UIImageConfiguration : NSObject <NSCopying, NSSecureCoding>
 
 + (instancetype)new NS_UNAVAILABLE;
@@ -38,7 +38,7 @@
 
 
 
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
 
 #else
 #import <UIKitCore/UIImageConfiguration.h>
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImageSymbolConfiguration.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImageSymbolConfiguration.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImageSymbolConfiguration.h	2022-02-23 10:59:12.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImageSymbolConfiguration.h	2022-06-03 18:09:55.000000000 -0400
@@ -12,7 +12,7 @@
 #import <UIKit/UIImage.h>
 #import <UIKit/UIImageConfiguration.h>
 
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
 
 // -- symbol images size
 typedef NS_ENUM(NSInteger, UIImageSymbolScale) {
@@ -43,7 +43,7 @@
 UIKIT_EXTERN UIImageSymbolWeight UIImageSymbolWeightForFontWeight(UIFontWeight fontWeight) API_AVAILABLE(ios(13.0),tvos(13.0),watchos(6.0));
 
 
-UIKIT_EXTERN API_AVAILABLE(ios(13.0),tvos(13.0),watchos(6.0)) 
+UIKIT_EXTERN API_AVAILABLE(ios(13.0),tvos(13.0),watchos(6.0)) NS_SWIFT_SENDABLE
 @interface UIImageSymbolConfiguration : UIImageConfiguration
 
 // everything is "unspecified". This is essentially the same as nil but's more explicit.
@@ -70,7 +70,7 @@
     API_AVAILABLE(ios(15.0),tvos(15.0),watchos(8.0));
 + (instancetype)configurationWithPaletteColors:(NSArray<UIColor *> *)paletteColors API_AVAILABLE(ios(15.0),tvos(15.0),watchos(8.0));
 + (instancetype)configurationPreferringMulticolor API_AVAILABLE(ios(15.0),tvos(15.0),watchos(8.0));
-+ (instancetype)_configurationPreferringMulticolor NS_SWIFT_NAME(configurationPreferringMulticolor()) API_UNAVAILABLE(ios, tvos, watchos);
++ (instancetype)configurationPreferringMonochrome API_AVAILABLE(ios(16.0),macCatalyst(16.0),tvos(16.0),watchos(9.0));
 
 // Removes attributes from the configuration if they are set
 - (instancetype)configurationWithoutTextStyle;
@@ -85,7 +85,7 @@
 
 @end
 
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
 
 #else
 #import <UIKitCore/UIImageSymbolConfiguration.h>
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes	2022-02-18 02:59:39.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes	2022-05-28 00:58:39.000000000 -0400
@@ -28,6 +28,11 @@
   - Selector: "textLayoutFragmentForPosition:"
     MethodKind: Instance
     SwiftName: textLayoutFragment(for:)
+- Name: NSTextListElement
+  Methods:
+  - Selector: "childElements"
+    MethodKind: Instance
+    SwiftName: children
 - Name: NSTextRange
   Methods:
   - Selector: "containsLocation:"
@@ -101,6 +106,8 @@
   SwiftPrivate: true
 - Name: UICellAccessoryDetail
   SwiftPrivate: true
+- Name: UICellAccessoryPopUpMenu
+  SwiftPrivate: true
 - Name: UICellAccessoryCheckmark
   SwiftPrivate: true
 - Name: UICellAccessoryDelete
@@ -242,6 +249,9 @@
   - Selector: 'defaultContentConfiguration'
     MethodKind: Instance
     SwiftPrivate: true
+  - Selector: 'defaultBackgroundConfiguration'
+    MethodKind: Instance
+    SwiftPrivate: true
   Properties:
   - Name: 'configurationState'
     PropertyKind: Instance
@@ -263,6 +273,9 @@
   - Selector: 'defaultContentConfiguration'
     MethodKind: Instance
     SwiftPrivate: true
+  - Selector: 'defaultBackgroundConfiguration'
+    MethodKind: Instance
+    SwiftPrivate: true
   Properties:
   - Name: 'configurationState'
     PropertyKind: Instance
@@ -281,6 +294,9 @@
   - Selector: 'updateConfigurationUsingState:'
     MethodKind: Instance
     SwiftPrivate: true
+  - Selector: 'defaultBackgroundConfiguration'
+    MethodKind: Instance
+    SwiftPrivate: true
   Properties:
   - Name: 'configurationState'
     PropertyKind: Instance
@@ -388,10 +404,6 @@
   - Selector: 'constraintLessThanOrEqualToAnchor:multiplier:constant:'
     SwiftName: constraint(lessThanOrEqualTo:multiplier:constant:)
     MethodKind: Instance
-- Name: NSLayoutConstraint
-  Properties:
-  - Name: firstItem
-    Nullability: O
 - Name: NSLayoutManager
   Methods:
   - Selector: 'getGlyphsInRange:glyphs:properties:characterIndexes:bidiLevels:'
@@ -538,6 +550,23 @@
   - Selector: 'flexibleSpaceItem'
     SwiftName: 'flexibleSpace()'
     MethodKind: Class
+  - Selector: 'creatingMovableGroupWithCustomizationIdentifier:'
+    SwiftName: 'creatingMovableGroup(customizationIdentifier:)'
+    MethodKind: Instance
+  - Selector: 'creatingOptionalGroupWithCustomizationIdentifier:inDefaultCustomization:'
+    MethodKind: Instance
+    SwiftPrivate: true
+- Name: UIBarButtonItemGroup
+  Methods:
+  - Selector: 'fixedGroupWithRepresentativeItem:items:'
+    MethodKind: Class
+    SwiftPrivate: true
+  - Selector: 'movableGroupWithCustomizationIdentifier:representativeItem:items:'
+    MethodKind: Class
+    SwiftPrivate: true
+  - Selector: 'optionalGroupWithCustomizationIdentifier:inDefaultCustomization:representativeItem:items:'
+    MethodKind: Class
+    SwiftPrivate: true
 - Name: UISegmentedControl
   Methods:
   - Selector: 'insertSegmentWithAction:atIndex:animated:'
@@ -808,6 +837,10 @@
   - Selector: 'environment:containsEnvironment:'
     MethodKind: Class
     Availability: nonswift
+- Name: UINavigationItem
+  Properties:
+  - Name: renameDelegate
+    Availability: nonswift
 - Name: UISceneConnectionOptions
   SwiftName: UIScene.ConnectionOptions
 - Name: UISceneOpenURLOptions
@@ -842,6 +875,13 @@
   - Selector: 'systemImageNamed:compatibleWithTraitCollection:'
     MethodKind: Class
     SwiftName: 'init(systemName:compatibleWith:)'
+  - Selector: 'systemImageNamed:variableValue:withConfiguration:'
+    MethodKind: Class
+    SwiftName: 'init(__systemName:variableValue:with:)'
+    SwiftPrivate: true
+  - Selector: 'imageNamed:inBundle:variableValue:withConfiguration:'
+    MethodKind: Class
+    SwiftPrivate: true
   - Selector: 'systemImageNamed:variant:'
     MethodKind: Class
     SwiftName: 'init(__systemName:variant:)'
@@ -871,6 +911,9 @@
   - Selector: 'configurationPreferringMulticolor'
     SwiftName: 'preferringMulticolor()'
     MethodKind: Class
+  - Selector: 'configurationPreferringMonochrome'
+    SwiftName: 'preferringMonochrome()'
+    MethodKind: Class
 - Name: UIDeferredMenuElement
   Methods:
   - Selector: 'elementWithProvider:'
@@ -879,6 +922,11 @@
   - Selector: 'elementWithUncachedProvider:'
     SwiftName: 'uncached(_:)'
     MethodKind: Class
+- Name: UIContextMenuConfiguration
+  Methods:
+  - Selector: 'configurationWithIdentifier:previewProvider:actionProvider:'
+    MethodKind: Class
+    SwiftPrivate: true
 - Name: UIBandSelectionInteraction
   Methods:
   - Selector: 'initWithSelectionHandler:'
@@ -900,6 +948,41 @@
   - Selector: 'arrowAccessoryWithPosition:'
     MethodKind: Class
     SwiftPrivate: true
+- Name: UICalendarViewDecoration
+  SwiftName: UICalendarView.Decoration
+  Methods:
+  - Selector: 'initWithImage:color:size:'
+    MethodKind: Instance
+    SwiftPrivate: true
+  - Selector: 'initWithCustomViewProvider:'
+    MethodKind: Instance
+    SwiftPrivate: true
+  - Selector: 'decorationWithColor:size:'
+    MethodKind: Class
+    SwiftPrivate: true
+  - Selector: 'decorationWithImage:'
+    MethodKind: Class
+    SwiftPrivate: true
+  - Selector: 'decorationWithImage:color:size:'
+    MethodKind: Class
+    SwiftPrivate: true
+  - Selector: 'decorationWithCustomViewProvider:'
+    MethodKind: Class
+    SwiftName: 'customView(_:)'
+- Name: UIEditMenuConfiguration
+  Properties:
+  - Name: identifier
+    PropertyKind: Instance
+    SwiftPrivate: true
+  Methods:
+  - Selector: 'configurationWithIdentifier:sourcePoint:'
+    MethodKind: Class
+    SwiftPrivate: true
+- Name: UIWindowScene
+  Methods:
+    - Selector: 'requestGeometryUpdateWithPreferences:errorHandler:'
+      SwiftName: requestGeometryUpdate(_:errorHandler:)
+      MethodKind: Instance
 - Name: UIWindowSceneActivationConfiguration
   SwiftName: UIWindowScene.ActivationConfiguration
 - Name: UIWindowSceneActivationRequestOptions
@@ -908,8 +991,21 @@
   SwiftName: UIWindowScene.ActivationAction
 - Name: UIWindowSceneActivationInteraction
   SwiftName: UIWindowScene.ActivationInteraction
+- Name: UIWindowSceneGeometry
+  SwiftName: UIWindowScene.Geometry
+- Name: UIWindowSceneGeometryPreferences
+  SwiftName: UIWindowScene.GeometryPreferences
+- Name: UIWindowSceneMacGeometryPreferences
+  SwiftName: UIWindowScene.MacGeometryPreferences
 - Name: UISheetPresentationControllerDetent
   SwiftName: UISheetPresentationController.Detent
+  Methods:
+  - Selector: 'customDetentWithIdentifier:resolver:'
+    MethodKind: Class
+    SwiftPrivate: true
+  - Selector: 'resolvedValueInContext:'
+    MethodKind: Instance
+    SwiftPrivate: true
 - Name: UISheetPresentationController
   Properties:
   - Name: preferredCornerRadius
@@ -1064,6 +1160,17 @@
   - Selector: 'presentSearchController:'
     SwiftName: presentSearchController(_:)
     MethodKind: Instance
+  - Selector: 'searchController:willChangeToSearchBarPlacement:'
+    SwiftName: searchController(_:willChangeTo:)
+    MethodKind: Instance
+  - Selector: 'searchController:didChangeFromSearchBarPlacement:'
+    SwiftName: searchController(_:didChangeFrom:)
+    MethodKind: Instance
+- Name: UISearchResultsUpdating
+  Methods:
+  - Selector: 'updateSearchResultsForSearchController:selectingSearchSuggestion:'
+    SwiftName: updateSearchResults(for:selecting:)
+    MethodKind: Instance
 - Name: UISplitViewControllerDelegate
   Methods:
   - Selector: 'splitViewController:showDetailViewController:sender:'
@@ -1175,6 +1282,12 @@
   - Selector: 'contextMenuInteraction:previewForDismissingMenuWithConfiguration:'
     SwiftName: 'contextMenuInteraction(_:previewForDismissingMenuWithConfiguration:)'
     MethodKind: Instance
+- Name: UINavigationItemRenameDelegate
+  Availability: nonswift
+- Name: UITextSearching
+  SwiftPrivate: true
+- Name: UITextSearchAggregator
+  SwiftPrivate: true
 Tags:
 - Name: NSTextContentManagerEnumerationOptions
   SwiftName: NSTextContentManager.EnumerationOptions
@@ -1186,6 +1299,8 @@
   SwiftName: NSTextLayoutManager.SegmentOptions
 - Name: NSTextLayoutManagerSegmentType
   SwiftName: NSTextLayoutManager.SegmentType
+- Name: NSTextListOptions
+  SwiftName: NSTextList.Options
 - Name: NSTextSelectionAffinity
   SwiftName: NSTextSelection.Affinity
 - Name: NSTextSelectionGranularity
@@ -1242,6 +1357,8 @@
   SwiftPrivate: true
 - Name: UIFocusHaloEffectPosition
   SwiftName: UIFocusHaloEffect.Position
+- Name: UINavigationItemSearchBarPlacement
+  SwiftName: UINavigationItem.SearchBarPlacement
 # Swift 4.2 Renames
 - Name: UIApplicationState
   SwiftName: UIApplication.State
@@ -1271,6 +1388,8 @@
   SwiftName: UIView.TintAdjustmentMode
 - Name: UIViewAutoresizing
   SwiftName: UIView.AutoresizingMask
+- Name: UICollectionViewSelfSizingInvalidation
+  SwiftName: UICollectionView.SelfSizingInvalidation
 - Name: UICollectionViewReorderingCadence
   SwiftName: UICollectionView.ReorderingCadence
 - Name: UICollectionViewScrollPosition
@@ -1287,6 +1406,8 @@
   SwiftName: UICollectionViewUpdateItem.Action
 - Name: UICollectionViewDropIntent
   SwiftName: UICollectionViewDropProposal.Intent
+- Name: UITableViewSelfSizingInvalidation
+  SwiftName: UITableView.SelfSizingInvalidation
 - Name: UITableViewSeparatorInsetReference
   SwiftName: UITableView.SeparatorInsetReference
 - Name: UITableViewStyle
@@ -1349,6 +1470,10 @@
   SwiftName: UIPageControl.InteractionState
 - Name: UIPageControlBackgroundStyle
   SwiftName: UIPageControl.BackgroundStyle
+- Name: UIPageControlDirection
+  SwiftName: UIPageControl.Direction
+- Name: UICalendarViewDecorationSize
+  SwiftName: UICalendarView.DecorationSize
 - Name: UIButtonType
   SwiftName: UIButton.ButtonType
 - Name: UIButtonRole
@@ -1461,6 +1586,8 @@
   SwiftName: UIAlertAction.Style
 - Name: UIScreenOverscanCompensation
   SwiftName: UIScreen.OverscanCompensation
+- Name: UIScreenReferenceDisplayModeStatus
+  SwiftName: UIScreen.ReferenceDisplayModeStatus
 - Name: UIEventType
   SwiftName: UIEvent.EventType
 - Name: UIEventSubtype
@@ -1487,6 +1614,12 @@
   SwiftName: UIApplicationShortcutIcon.IconType
 - Name: UIMenuControllerArrowDirection
   SwiftName: UIMenuController.ArrowDirection
+- Name: UIMenuElementSize
+  SwiftName: UIMenu.ElementSize
+- Name: UIMenuElementAttributes
+  SwiftName: UIMenuElement.Attributes
+- Name: UIMenuElementState
+  SwiftName: UIMenuElement.State
 - Name: UIInputViewStyle
   SwiftName: UIInputView.Style
 - Name: UIAccessibilityCustomSystemRotorType
@@ -1530,6 +1663,8 @@
 - Name: UIWindowSceneDismissalAnimation
   SwiftName: UIWindowScene.DismissalAnimation
 Typedefs:
+- Name: NSTextListMarkerFormat
+  SwiftName: NSTextList.MarkerFormat
 - Name: UIButtonConfigurationUpdateHandler
   SwiftName: UIButton.ConfigurationUpdateHandler
 - Name: UIConfigurationColorTransformer
@@ -1642,6 +1777,8 @@
   SwiftName: UIAccessibility.AssistiveTechnologyIdentifier
 - Name: UIAccessibilityCustomActionHandler
   SwiftName: UIAccessibilityCustomAction.Handler
+- Name: UITextSearchDocumentIdentifier
+  SwiftPrivate: true
 Enumerators:
 - Name: NSLayoutFormatDirectionLeadingToTrailing
   SwiftName: directionLeadingToTrailing
@@ -1926,10 +2063,16 @@
   SwiftName: UIScene.willEnterForegroundNotification
 - Name: UISceneDidEnterBackgroundNotification
   SwiftName: UIScene.didEnterBackgroundNotification
+- Name: UIScreenReferenceDisplayModeStatusDidChangeNotification
+  SwiftName: UIScreen.referenceDisplayModeStatusDidChangeNotification
 - Name: UIWindowSceneSessionRoleApplication
   SwiftName: windowApplication
 - Name: UIWindowSceneSessionRoleExternalDisplay
   SwiftName: windowExternalDisplay
+- Name: UIWindowSceneSessionRoleExternalDisplayNonInteractive
+  SwiftName: windowExternalDisplayNonInteractive
+- Name: UISheetPresentationControllerDetentInactive
+  SwiftPrivate: true
 - Name: UISheetPresentationControllerAutomaticDimension
   SwiftPrivate: true
 # Swift 4.2 Renames
@@ -2499,6 +2642,11 @@
     - Selector: "setShowsScopeBar:animated:"
       SwiftName: setShowsScopeBar(_:animated:)
       MethodKind: Instance
+  - Name: UISearchTextField
+    Methods:
+    - Selector: "searchTextField:didSelectSuggestion:"
+      SwiftName: searchTextField(_:didSelect:)
+      MethodKind: Instance
   - Name: UITextView
     Properties:
     - Name: typingAttributes
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h	2022-02-17 04:55:10.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h	2022-05-25 21:07:41.000000000 -0400
@@ -19,3 +19,7 @@
 #if __has_include(<UIKit/ShareSheet.h>)
 #import <UIKit/ShareSheet.h>
 #endif
+
+#if __has_include(<UIKit/PrintKitUI.h>)
+#import <UIKit/PrintKitUI.h>
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKitCore.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKitCore.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKitCore.h	2022-02-17 03:53:59.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKitCore.h	2022-05-26 01:01:28.000000000 -0400
@@ -130,21 +130,13 @@
 #import <UIKit/UIPasteboard.h>
 #import <UIKit/UIPasteConfiguration.h>
 #import <UIKit/UIPasteConfigurationSupporting.h>
+#import <UIKit/UIPasteControl.h>
 #import <UIKit/UIPickerView.h>
 #import <UIKit/UIPinchGestureRecognizer.h>
 #import <UIKit/UIPopoverController.h>
 #import <UIKit/UIPopoverBackgroundView.h>
 #import <UIKit/UIPress.h>
 #import <UIKit/UIPressesEvent.h>
-#import <UIKit/UIPrinter.h>
-#import <UIKit/UIPrinterPickerController.h>
-#import <UIKit/UIPrintError.h>
-#import <UIKit/UIPrintFormatter.h>
-#import <UIKit/UIPrintInfo.h>
-#import <UIKit/UIPrintInteractionController.h>
-#import <UIKit/UIPrintPageRenderer.h>
-#import <UIKit/UIPrintPaper.h>
-#import <UIKit/UIPrintServiceExtension.h>
 #import <UIKit/UIProgressView.h>
 #import <UIKit/UIReferenceLibraryViewController.h>
 #import <UIKit/UIRefreshControl.h>
@@ -221,7 +213,6 @@
 #import <UIKit/UITrackingLayoutGuide.h>
 #import <UIKit/UIStackView.h>
 #import <UIKit/NSLayoutManager.h>
-#import <UIKit/NSTextAttachment.h>
 #import <UIKit/NSTextContainer.h>
 #import <UIKit/NSTextStorage.h>
 #import <UIKit/UIStateRestoration.h>
@@ -230,6 +221,7 @@
 #import <UIKit/UIPresentationController.h>
 #import <UIKit/UIPreviewInteraction.h>
 #import <UIKit/UISheetPresentationController.h>
+#import <UIKit/UIPopoverPresentationControllerSourceItem.h>
 #import <UIKit/UIPopoverPresentationController.h>
 #import <UIKit/UIDynamicAnimator.h>
 #import <UIKit/UIDynamicBehavior.h>
@@ -267,6 +259,7 @@
 #import <UIKit/UIAlert.h>
 #import <UIKit/UIAccessibilityLocationDescriptor.h>
 #import <UIKit/UINavigationItem.h>
+#import <UIKit/UIDocumentProperties.h>
 #import <UIKit/UIAccessibilityAdditions.h>
 #import <UIKit/UITimingParameters.h>
 #import <UIKit/UIBarCommon.h>
@@ -280,6 +273,7 @@
 #import <UIKit/UIGraphicsRendererSubclass.h>
 #import <UIKit/UIFocusMovementHint.h>
 #import <UIKit/UIPencilInteraction.h>
+#import <UIKit/UISceneWindowingBehaviors.h>
 #import <UIKit/UISceneDefinitions.h>
 #import <UIKit/UISceneEnhancedStateRestoration.h>
 #import <UIKit/UISceneOptions.h>
@@ -287,6 +281,9 @@
 #import <UIKit/UIWindowScene.h>
 #import <UIKit/UISceneSession.h>
 #import <UIKit/UISceneActivationConditions.h>
+#import <UIKit/UIWindowSceneGeometry.h>
+#import <UIKit/UIWindowSceneGeometryPreferences.h>
+#import <UIKit/UIWindowSceneMacGeometryPreferences.h>
 #import <UIKit/UIOpenURLContext.h>
 #import <UIKit/UIStatusBarManager.h>
 #import <UIKit/UIScreenshotService.h>
@@ -295,6 +292,7 @@
 #import <UIKit/UNNotificationResponse+UIKitAdditions.h>
 #import <UIKit/UIAction.h>
 #import <UIKit/UIMenu.h>
+#import <UIKit/UIMenuLeaf.h>
 #import <UIKit/UIMenuBuilder.h>
 #import <UIKit/UIMenuElement.h>
 #import <UIKit/UIDeferredMenuElement.h>
@@ -318,4 +316,13 @@
 #import <UIKit/UIWindowSceneActivationInteraction.h>
 #import <UIKit/UIFocusEffect.h>
 #import <UIKit/UIToolTipInteraction.h>
+#import <UIKit/UICalendarView.h>
+#import <UIKit/UICalendarViewDecoration.h>
+#import <UIKit/UICalendarSelection.h>
+#import <UIKit/UICalendarSelectionSingleDate.h>
+#import <UIKit/UICalendarSelectionMultiDate.h>
+#import <UIKit/UITextSearching.h>
+#import <UIKit/UIFindSession.h>
+#import <UIKit/UIFindInteraction.h>
+#import <UIKit/UIEditMenuInteraction.h>
 #endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKitDefines.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKitDefines.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKitDefines.h	2022-02-23 07:16:36.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKitDefines.h	2022-05-31 15:04:39.000000000 -0400
@@ -28,7 +28,7 @@
 #define UIKIT_CLASS_AVAILABLE_IOS_TVOS(_ios, _tvos) UIKIT_EXTERN __IOS_AVAILABLE(_ios) __WATCHOS_UNAVAILABLE __TVOS_AVAILABLE(_tvos)
 #define UIKIT_CLASS_AVAILABLE_IOS_WATCHOS_TVOS(_ios, _watchos, _tvos) UIKIT_EXTERN __IOS_AVAILABLE(_ios) __WATCHOS_AVAILABLE(_watchos) __TVOS_AVAILABLE(_tvos)
 
-#define UIKIT_SWIFT_ACTOR_INDEPENDENT __attribute__((swift_attr("@actorIndependent(unsafe)")))
+#define UIKIT_SWIFT_ACTOR_INDEPENDENT __attribute__((swift_attr("nonisolated")))
 
 #if __swift__
 #define UIKIT_SWIFT_FORWARD_DECLARE(DECLARATION) DECLARATION;
@@ -47,7 +47,7 @@
 #endif
 
 #if !defined(UIKIT_HAS_UIFOUNDATION_SYMBOLS)
-    #if defined(UIKIT_BUILDING_UIKITMACHELPER)
+    #if defined(UIKIT_BUILDING_UIKITMACHELPER) || __has_feature(modules)
         #define UIKIT_HAS_UIFOUNDATION_SYMBOLS TARGET_OS_IPHONE
     #else
         #define UIKIT_HAS_UIFOUNDATION_SYMBOLS 1
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UILocalNotification.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UILocalNotification.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UILocalNotification.h	2022-02-23 07:16:37.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UILocalNotification.h	2022-05-31 15:04:40.000000000 -0400
@@ -9,7 +9,7 @@
 #import <Foundation/Foundation.h>
 #import <UIKit/UIKitDefines.h>
 
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
 
 @class CLRegion;
 
@@ -61,7 +61,7 @@
 
 UIKIT_EXTERN NSString *const UILocalNotificationDefaultSoundName API_DEPRECATED("Use UserNotifications Framework's +[UNNotificationSound defaultSound]", ios(4.0, 10.0)) API_UNAVAILABLE(tvos);
 
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
 
 #else
 #import <UIKitCore/UILocalNotification.h>
Clone this wiki locally