Using isSubclassOfClass instead == for animated image class matching check
This commit is contained in:
parent
4e7d03d471
commit
43bb20af32
|
@ -393,7 +393,7 @@
|
|||
// Check image class matching
|
||||
Class animatedImageClass = image.class;
|
||||
Class desiredImageClass = context[SDWebImageContextAnimatedImageClass];
|
||||
if (desiredImageClass && animatedImageClass && desiredImageClass != animatedImageClass) {
|
||||
if (desiredImageClass && ![animatedImageClass isSubclassOfClass:desiredImageClass]) {
|
||||
image = nil;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue