Skip to content

Commit 63201c7

Browse files
committed
Fix the test case during refactory the prefetch logic
1 parent 1e1ddcc commit 63201c7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

SDWebImageSwiftUI/Classes/ImageManager.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ public final class ImageManager : ObservableObject {
123123
manager.loadImage(with: url, options: options, context: context, progress: nil) { (image, data, error, cacheType, finished, imageUrl) in
124124
// This will callback immediately
125125
self.image = image
126+
if let image = image {
127+
self.successBlock?(image, cacheType)
128+
}
126129
}
127130
}
128131

0 commit comments

Comments
 (0)