Skip to content

UIKit watchOS xcode15.3 b2

Alex Soto edited this page Jul 9, 2024 · 2 revisions

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

diff -ruN /Applications/Xcode_15.3.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSItemProvider+UIKitAdditions.h /Applications/Xcode_15.3.0-beta2.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSItemProvider+UIKitAdditions.h
--- /Applications/Xcode_15.3.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSItemProvider+UIKitAdditions.h	2024-01-19 03:26:09
+++ /Applications/Xcode_15.3.0-beta2.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSItemProvider+UIKitAdditions.h	2024-01-29 11:36:42
@@ -21,6 +21,12 @@
     UIPreferredPresentationStyleAttachment,
 };
 
+// workaround for
+// rdar://120810891 (NSItemProvider canLoadObjectOfClass disagreement with loadObjectOfClass)
+@interface NSItemProvider (NSItemProviderTypeAvailability)
+- (NSArray<NSString *> *)_availableTypes API_AVAILABLE(ios(17.3));
+@end
+
 @interface NSItemProvider (UIKitAdditions)
 
 @property (nonatomic, copy, nullable) NSData *teamData API_AVAILABLE(ios(11.0)) API_UNAVAILABLE(watchos, tvos);
@@ -54,7 +60,6 @@
 // UIItemProvider does this on your behalf.
 @property (class, NS_NONATOMIC_IOSONLY, readonly, copy) NSArray<NSString *> *additionalLeadingReadableTypeIdentifiersForItemProvider;
 @property (class, NS_NONATOMIC_IOSONLY, readonly, copy) NSArray<NSString *> *additionalTrailingReadableTypeIdentifiersForItemProvider;
-
 @end
 
 @protocol UIItemProviderReadingAugmentationDesignating <NSItemProviderReading>
Clone this wiki locally