File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
SDWebImageSwiftUI/Classes Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -10,14 +10,14 @@ import SwiftUI
10
10
import SDWebImage
11
11
12
12
class ImageManager : ObservableObject {
13
- @Published var image : PlatformImage ?
14
- @Published var isLoading : Bool = false
15
- @Published var progress : CGFloat = 0
13
+ @Published var image : PlatformImage ? // loaded image, note when progressive loading, this will published multiple times with different partial image
14
+ @Published var isLoading : Bool = false // whether network is loading or cache is querying
15
+ @Published var progress : CGFloat = 0 // network progress
16
16
17
17
var manager = SDWebImageManager . shared
18
18
weak var currentOperation : SDWebImageOperation ? = nil
19
- var isFinished : Bool = false
20
- var isIncremental : Bool = false
19
+ var isFinished : Bool = false // true means request end, load() do nothing
20
+ var isIncremental : Bool = false // true means during incremental loading
21
21
22
22
var url : URL ?
23
23
var options : SDWebImageOptions
You can’t perform that action at this time.
0 commit comments