WebImageOptions
public struct WebImageOptions : OptionSet, Sendable
网络图片加载选项,默认兼容SDWebImage
-
Declaration
Swift
public let rawValue: UInt
-
是否图片缓存存在时仍重新请求(依赖NSURLCache)
Declaration
Swift
public static let refreshCached: WebImageOptions
-
是否延迟占位,将加载占位图作为错误占位图
Declaration
Swift
public static let delayPlaceholder: WebImageOptions
-
禁止调用imageView.setImage:显示图片
Declaration
Swift
public static let avoidSetImage: WebImageOptions
-
图片缓存存在时是否查询Data数据
Declaration
Swift
public static let queryMemoryData: WebImageOptions
-
忽略图片缓存,始终重新请求
Declaration
Swift
public static let ignoreCache: WebImageOptions
-
Declaration
Swift
public init(rawValue: UInt)