You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: SDWebImageSwiftUI/Classes/Indicator/Indicator.swift
+11-11Lines changed: 11 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -11,15 +11,15 @@ import SwiftUI
11
11
12
12
/// A type to build the indicator
13
13
publicstructIndicator<T>where T :View{
14
-
varbuilder:(Binding<Bool>,Binding<CGFloat>)->T
14
+
varcontent:(Binding<Bool>,Binding<CGFloat>)->T
15
15
16
16
/// Create a indicator with builder
17
17
/// - Parameter builder: A builder to build indicator
18
18
/// - Parameter isAnimating: A Binding to control the animation. If image is during loading, the value is true, else (like start loading) the value is false.
19
19
/// - Parameter progress: A Binding to control the progress during loading. If no progress can be reported, the value is 0.
20
20
/// Associate a indicator when loading image with url
Copy file name to clipboardExpand all lines: SDWebImageSwiftUI/Classes/WebImage.swift
+40-29Lines changed: 40 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -13,22 +13,20 @@ public struct WebImage : View {
13
13
staticvaremptyImage=PlatformImage()
14
14
15
15
varurl:URL?
16
-
varplaceholder:Image?
17
16
varoptions:SDWebImageOptions
18
17
varcontext:[SDWebImageContextOption:Any]?
19
18
19
+
varplaceholder:AnyView?
20
20
varconfigurations:[(Image)->Image]=[]
21
21
22
22
@ObservedObjectvarimageManager:ImageManager
23
23
24
24
/// Create a web image with url, placeholder, custom options and context.
25
25
/// - Parameter url: The image url
26
-
/// - Parameter placeholder: The placeholder image to show during loading
27
26
/// - Parameter options: The options to use when downloading the image. See `SDWebImageOptions` for the possible values.
28
27
/// - Parameter context: A context contains different options to perform specify changes or processes, see `SDWebImageContextOption`. This hold the extra objects which `options` enum can not hold.
0 commit comments