Update the Example with the latest dependency
This commit is contained in:
parent
61171651b2
commit
55a99b08aa
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue