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/WebImage.swift
+31-4Lines changed: 31 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,11 @@ public struct WebImage : View {
19
19
20
20
@ObservedObjectvarimageManager:ImageManager
21
21
22
+
/// Create a web image with url, placeholder, custom options and context.
23
+
/// - Parameter url: The image url
24
+
/// - Parameter placeholder: The placeholder image to show during loading
25
+
/// - Parameter options: The options to use when downloading the image. See `SDWebImageOptions` for the possible values.
26
+
/// - 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.
/// - action: The action to perform. The first arg is the loaded image, the second arg is the cache type loaded from. If `action` is `nil`, the call has no effect.
115
+
/// - Returns: A view that triggers `action` when this image load successes.
/// Provide the action when image load progress changes.
122
+
/// - Parameters:
123
+
/// - action: The action to perform. The first arg is the received size, the second arg is the total size, all in bytes. If `action` is `nil`, the call has no effect.
124
+
/// - Returns: A view that triggers `action` when this image load successes.
0 commit comments