Update the Example with the latest dependency

This commit is contained in:
DreamPiggy 2020-03-03 18:35:54 +08:00
parent 61171651b2
commit 55a99b08aa
4 changed files with 4 additions and 8 deletions

View File

@ -45,8 +45,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
options.insert(.avoidDecodeImage)
} else {
// WebImage supports bitmap rendering only
context?[.svgPrefersBitmap] = true
context?[.pdfPrefersBitmap] = true
context?[.imageThumbnailPixelSize] = CGSize.zero
}
return SDWebImageOptionsResult(options: options, context: context)
}

View File

@ -53,8 +53,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
options.insert(.avoidDecodeImage)
} else {
// WebImage supports bitmap rendering only
context?[.svgPrefersBitmap] = true
context?[.pdfPrefersBitmap] = true
context?[.imageThumbnailPixelSize] = CGSize.zero
}
return SDWebImageOptionsResult(options: options, context: context)
}

View File

@ -24,8 +24,7 @@ class ExtensionDelegate: NSObject, WKExtensionDelegate {
SDWebImageManager.shared.optionsProcessor = SDWebImageOptionsProcessor { url, options, context in
var context = context
// WebImage supports bitmap rendering only
context?[.svgPrefersBitmap] = true
context?[.pdfPrefersBitmap] = true
context?[.imageThumbnailPixelSize] = CGSize.zero
return SDWebImageOptionsResult(options: options, context: context)
}
}

View File

@ -32,8 +32,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
options.insert(.avoidDecodeImage)
} else {
// WebImage supports bitmap rendering only
context?[.svgPrefersBitmap] = true
context?[.pdfPrefersBitmap] = true
context?[.imageThumbnailPixelSize] = CGSize.zero
}
return SDWebImageOptionsResult(options: options, context: context)
}