DefaultCacheSerializer
public struct DefaultCacheSerializer: CacheSerializer
DefaultCacheSerializer
is a basic CacheSerializer
used in default cache of
Kingfisher. It could serialize and deserialize PNG, JEPG and GIF images. For
image other than these formats, a normalized pngRepresentation
will be used.
-
Undocumented
Declaration
Swift
public struct DefaultCacheSerializer: CacheSerializer
-
Declaration
Swift
public func data(with image: Image, original: Data?) -> Data?
-
Declaration
Swift
public func image(with data: Data, options: KingfisherOptionsInfo?) -> Image?