Fix the test case during refactory the prefetch logic

This commit is contained in:
DreamPiggy 2020-04-05 15:00:39 +08:00
parent 1e1ddccc1a
commit 63201c7145
1 changed files with 3 additions and 0 deletions

View File

@ -123,6 +123,9 @@ public final class ImageManager : ObservableObject {
manager.loadImage(with: url, options: options, context: context, progress: nil) { (image, data, error, cacheType, finished, imageUrl) in
// This will callback immediately
self.image = image
if let image = image {
self.successBlock?(image, cacheType)
}
}
}