Skip to content

UIKit iOS 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/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSItemProvider+UIKitAdditions.h /Applications/Xcode_15.3.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSItemProvider+UIKitAdditions.h
--- /Applications/Xcode_15.3.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSItemProvider+UIKitAdditions.h	2024-01-19 02:21:15
+++ /Applications/Xcode_15.3.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSItemProvider+UIKitAdditions.h	2024-02-01 00:36:33
@@ -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