Fix the example crash issue of ObjcClass, should check meta type but not instance type
This commit is contained in:
parent
c92240b4af
commit
fe54241aca
|
@ -26,7 +26,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
|
||||||
// Dynamic check to support both WebImage/AnimatedImage
|
// Dynamic check to support both WebImage/AnimatedImage
|
||||||
SDWebImageManager.shared.optionsProcessor = SDWebImageOptionsProcessor { url, options, context in
|
SDWebImageManager.shared.optionsProcessor = SDWebImageOptionsProcessor { url, options, context in
|
||||||
var context = context
|
var context = context
|
||||||
if let _ = context?[.animatedImageClass] as? SDAnimatedImageProtocol {
|
if let _ = context?[.animatedImageClass] as? SDAnimatedImage.Type {
|
||||||
// AnimatedImage supports vector rendering
|
// AnimatedImage supports vector rendering
|
||||||
} else {
|
} else {
|
||||||
// WebImage supports bitmap rendering only
|
// WebImage supports bitmap rendering only
|
||||||
|
|
Loading…
Reference in New Issue