WebImageView

@available(iOS 13.0, *)
public struct WebImageView : View

网络图片视图,仅支持静态图

  • Undocumented

    Declaration

    Swift

    @ObservedObject
    public private(set) var binder: ImageBinder { get set }
  • Undocumented

    Declaration

    Swift

    public init(_ url: Any?, isLoaded: Binding<Bool> = .constant(false))
  • Declaration

    Swift

    public var body: some View { get }
  • Undocumented

    Declaration

    Swift

    public func placeholder<Content>(@ViewBuilder _ builder: () -> Content) -> WebImageView where Content : View
  • Undocumented

    Declaration

    Swift

    public func cancelOnDisappear(_ flag: Bool) -> WebImageView
  • Undocumented

    Declaration

    Swift

    public func configure(_ block: @escaping (Image) -> Image) -> WebImageView
  • Undocumented

    Declaration

    Swift

    public func resizable(capInsets: EdgeInsets = EdgeInsets(), resizingMode: Image.ResizingMode = .stretch) -> WebImageView
  • Undocumented

    Declaration

    Swift

    public func renderingMode(_ renderingMode: Image.TemplateRenderingMode?) -> WebImageView
  • Undocumented

    Declaration

    Swift

    public func interpolation(_ interpolation: Image.Interpolation) -> WebImageView
  • Undocumented

    Declaration

    Swift

    public func antialiased(_ isAntialiased: Bool) -> WebImageView
  • Undocumented

    Declaration

    Swift

    public func onCompletion(perform action: ((UIImage?, Error?) -> Void)?) -> WebImageView
  • Undocumented

    Declaration

    Swift

    public func onProgress(perform action: ((Double) -> Void)?) -> WebImageView
  • Undocumented

    See more

    Declaration

    Swift

    public class ImageBinder : ObservableObject