Fix the API define to match the documentation
This commit is contained in:
parent
28986d5477
commit
140bf0bc36
|
@ -144,7 +144,7 @@ extension WebImage {
|
||||||
/// Associate a placeholder when loading image with url
|
/// Associate a placeholder when loading image with url
|
||||||
/// - note: The differences between Placeholder and Indicator, is that placeholder does not supports animation, and return type is different
|
/// - note: The differences between Placeholder and Indicator, is that placeholder does not supports animation, and return type is different
|
||||||
/// - Parameter content: A view that describes the placeholder.
|
/// - Parameter content: A view that describes the placeholder.
|
||||||
public func placeholder<T>(@ViewBuilder _ content: () -> T) -> WebImage where T : View {
|
public func placeholder<T>(@ViewBuilder content: () -> T) -> WebImage where T : View {
|
||||||
var result = self
|
var result = self
|
||||||
result.placeholder = AnyView(content())
|
result.placeholder = AnyView(content())
|
||||||
return result
|
return result
|
||||||
|
|
Loading…
Reference in New Issue