Skip to content

QuickLookThumbnailing iOS xcode13.0 beta1

Rachel Kang edited this page Aug 3, 2021 · 3 revisions

#QuickLookThumbnailing.framework https://github.com/xamarin/xamarin-macios/pull/12338

diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/QuickLookThumbnailing.framework/Headers/QLThumbnailReply.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/QuickLookThumbnailing.framework/Headers/QLThumbnailReply.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/QuickLookThumbnailing.framework/Headers/QLThumbnailReply.h	2021-03-16 08:47:21.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/QuickLookThumbnailing.framework/Headers/QLThumbnailReply.h	2021-06-02 12:46:56.000000000 -0400
@@ -20,6 +20,9 @@
 API_AVAILABLE(ios(11.0), macos(10.15)) API_UNAVAILABLE(watchos,tvos)  __attribute__((visibility("default")))
 @interface QLThumbnailReply : NSObject
 
+///The extensionBadge is a short string identifying the file type used as a badge when producing an icon.
+@property (nonatomic, copy) NSString* extensionBadge API_AVAILABLE(ios(15.0), macos(12.0));
+
 - (instancetype)init NS_UNAVAILABLE;
 
 /**
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/QuickLookThumbnailing.framework/Headers/QLThumbnailRepresentation.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/QuickLookThumbnailing.framework/Headers/QLThumbnailRepresentation.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/QuickLookThumbnailing.framework/Headers/QLThumbnailRepresentation.h	2021-03-16 08:47:21.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/QuickLookThumbnailing.framework/Headers/QLThumbnailRepresentation.h	2021-06-02 12:46:56.000000000 -0400
@@ -36,6 +36,9 @@
 /// Returns the NSImage representation of the thumbnail. You need to explicitly link against AppKit to use this property.
 @property (nonatomic, readonly, strong) NSImage *NSImage API_UNAVAILABLE(ios);
 
+/// Returns the the effective rect within the thumbnail image representing the content of the document. In icon mode, this is the part of the image without all the image decorations.
+@property (nonatomic, readonly) CGRect contentRect API_AVAILABLE(ios(15.0), macos(12.0));
+
 @end
 
 NS_ASSUME_NONNULL_END
Clone this wiki locally