Fixed create progressive coder issue

Because we don't break when we find the 1st coder that can decode progressively, we will always rewrite the `progressiveCoder ` with an `SDWebImageIOCoder` instance
This commit is contained in:
Bogdan Poplauschi 2017-10-25 19:48:36 +03:00 committed by GitHub
parent 85cb2fd6ad
commit 5773bfec07
1 changed files with 1 additions and 0 deletions

View File

@ -332,6 +332,7 @@ didReceiveResponse:(NSURLResponse *)response
if ([coder conformsToProtocol:@protocol(SDWebImageProgressiveCoder)] &&
[((id<SDWebImageProgressiveCoder>)coder) canIncrementallyDecodeFromData:imageData]) {
self.progressiveCoder = [[[coder class] alloc] init];
break;
}
}
}