WebImageView
@MainActor
public struct WebImageView : View
网络图片视图,仅支持静态图
-
Undocumented
Declaration
Swift
@ObservedObject @MainActor public private(set) var binder: ImageBinder { get set }
-
Undocumented
Declaration
Swift
@MainActor public init(_ url: URLParameter?, isLoaded: Binding<Bool> = .constant(false))
-
Declaration
Swift
@MainActor public var body: some View { get }
-
Undocumented
Declaration
Swift
@MainActor public func placeholder<Content>(@ViewBuilder content: () -> Content) -> WebImageView where Content : View
-
Undocumented
Declaration
Swift
@MainActor public func cancelOnDisappear(_ flag: Bool) -> WebImageView
-
Undocumented
Declaration
Swift
@MainActor public func configure(_ block: @escaping (Image) -> Image) -> WebImageView
-
Undocumented
Declaration
Swift
@MainActor public func resizable(capInsets: EdgeInsets = EdgeInsets(), resizingMode: Image.ResizingMode = .stretch) -> WebImageView
-
Undocumented
Declaration
Swift
@MainActor public func renderingMode(_ renderingMode: Image.TemplateRenderingMode?) -> WebImageView
-
Undocumented
Declaration
Swift
@MainActor public func interpolation(_ interpolation: Image.Interpolation) -> WebImageView
-
Undocumented
Declaration
Swift
@MainActor public func antialiased(_ isAntialiased: Bool) -> WebImageView
-
Undocumented
Declaration
Swift
@MainActor public func onCompletion(perform action: (@MainActor @Sendable (UIImage?, Error?) -> Void)?) -> WebImageView
-
Undocumented
Declaration
Swift
@MainActor public func onProgress(perform action: (@MainActor @Sendable (Double) -> Void)?) -> WebImageView
-
Undocumented
See moreDeclaration
Swift
public class ImageBinder : ObservableObject, @unchecked Sendable