Skip to content

Commit 140bf0b

Browse files
committed
Fix the API define to match the documentation
1 parent 28986d5 commit 140bf0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SDWebImageSwiftUI/Classes/WebImage.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ extension WebImage {
144144
/// Associate a placeholder when loading image with url
145145
/// - note: The differences between Placeholder and Indicator, is that placeholder does not supports animation, and return type is different
146146
/// - Parameter content: A view that describes the placeholder.
147-
public func placeholder<T>(@ViewBuilder _ content: () -> T) -> WebImage where T : View {
147+
public func placeholder<T>(@ViewBuilder content: () -> T) -> WebImage where T : View {
148148
var result = self
149149
result.placeholder = AnyView(content())
150150
return result

0 commit comments

Comments
 (0)