Skip to content

Commit fe54241

Browse files
committed
Fix the example crash issue of ObjcClass, should check meta type but not instance type
1 parent c92240b commit fe54241

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Example/SDWebImageSwiftUIDemo/AppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
2626
// Dynamic check to support both WebImage/AnimatedImage
2727
SDWebImageManager.shared.optionsProcessor = SDWebImageOptionsProcessor { url, options, context in
2828
var context = context
29-
if let _ = context?[.animatedImageClass] as? SDAnimatedImageProtocol {
29+
if let _ = context?[.animatedImageClass] as? SDAnimatedImage.Type {
3030
// AnimatedImage supports vector rendering
3131
} else {
3232
// WebImage supports bitmap rendering only

0 commit comments

Comments
 (0)