Base64ImageDataProvider
public struct Base64ImageDataProvider : ImageDataProvider
Represents an image data provider for loading image from a given Base64 encoded string.
-
The encoded Base64 string for the image.
Declaration
Swift
public let base64String: String
-
Creates an image data provider by supplying the Base64 encoded string.
Declaration
Swift
public init(base64String: String, cacheKey: String)
Parameters
base64String
The Base64 encoded string for an image.
cacheKey
The key is used for caching the image data. You need a different key for any different image.
-
The key used in cache.
Declaration
Swift
public var cacheKey: String
-
Declaration
Swift
public func data(handler: (Result<Data, Error>) -> Void)