ref: make app plist required
This commit is contained in:
@@ -22,7 +22,10 @@ class ThumbnailProvider: QLThumbnailProvider {
|
||||
|
||||
override func provideThumbnail(for request: QLFileThumbnailRequest, _ handler: @escaping (QLThumbnailReply?, Error?) -> Void) {
|
||||
let meta = MetaInfo(request.fileURL)
|
||||
let img = AppIcon(meta).extractImage(from: meta.readPlistApp()).withRoundCorners()
|
||||
guard let appPlist = meta.readPlistApp() else {
|
||||
return
|
||||
}
|
||||
let img = AppIcon(meta).extractImage(from: appPlist).withRoundCorners()
|
||||
|
||||
// First way: Draw the thumbnail into the current context, set up with UIKit's coordinate system.
|
||||
let reply = QLThumbnailReply(contextSize: request.maximumSize, currentContextDrawing: { () -> Bool in
|
||||
|
||||
Reference in New Issue
Block a user