Contrary to what the framework info states, it's been deprecated.
Framework
SDKs
- iOS 4.0+
- macOS 10.5+
- tvOS 12.1+
- watchOS 5.1+
- Mac Catalyst 13.0+
Framework
QuickLook
Here we see all func have been deprecated
func QLPreviewRequestCopyContentUTI(QLPreviewRequest!) -> Unmanaged<CFString>!
Returns the UTI for the preview request.
Deprecated
func QLPreviewRequestCopyOptions(QLPreviewRequest!) -> Unmanaged<CFDictionary>!
Returns the options specified for the preview request.
Deprecated
func QLPreviewRequestCopyURL(QLPreviewRequest!) -> Unmanaged<CFURL>!
Returns the URL of the document for which a preview is requested.
Deprecated
etc…
func QLThumbnailCancel(QLThumbnail!)
Deprecated
func QLThumbnailCopyDocumentURL(QLThumbnail!) -> Unmanaged<CFURL>!
Deprecated
func QLThumbnailCopyImage(QLThumbnail!) -> Unmanaged<CGImage>!
Deprecated
func QLThumbnailCopyOptions(QLThumbnail!) -> Unmanaged<CFDictionary>!
Deprecated
func QLThumbnailCreate(CFAllocator!, CFURL!, CGSize, CFDictionary!) -> Unmanaged<QLThumbnail>!
Deprecated
func QLThumbnailDispatchAsync(QLThumbnail!, DispatchQueue!, (() -> Void)!)
Deprecated
func QLThumbnailGetContentRect(QLThumbnail!) -> CGRect
Deprecated
func QLThumbnailGetMaximumSize(QLThumbnail!) -> CGSize
Deprecated
func QLThumbnailGetTypeID() -> CFTypeID
Deprecated
func QLThumbnailImageCreate(CFAllocator!, CFURL!, CGSize, CFDictionary!) -> Unmanaged<CGImage>!
Creates a thumbnail image for the specified file.
func QLThumbnailIsCancelled(QLThumbnail!) -> Bool
Deprecated
func QLThumbnailRequestCopyContentUTI(QLThumbnailRequest!) -> Unmanaged<CFString>!
Returns the UTI for the thumbnail request.
Deprecated
func QLThumbnailRequestCopyOptions(QLThumbnailRequest!) -> Unmanaged<CFDictionary>!
Returns the options specified for the thumbnail request.
Deprecated
func QLThumbnailRequestCopyURL(QLThumbnailRequest!) -> Unmanaged<CFURL>!
Returns the URL of the document for which the thumbnail request is requested.
Deprecated
etc…
What happens when you call the former QLThumbnail functions for iOS 12 (does this compiles and links ?)
if #available(iOS 13.0, *) {
// Use QLThumbnailGenerationRequest in QuickLookThumbnailing to generate thumbnails.
} else {
// call QLThumbnailCreate() // Use QuickLookThumbnailing for thumbnails.
}
See here the corresponding API
h ttp://codeworkshop.net/objc-diff/sdkdiffs/macos/10.15/QuickLook.html