public struct ImageResource: Resource
ImageResource is a simple combination of
When passed to image view set methods, Kingfisher will try to download the target
image from the
downloadURL, and then store it with the
cacheKey as the key in cache.
Represents an image resource at a certain url and a given cache key. Kingfisher will use a
Resourceto download a resource from network and cache it with the cache key when using
Source.networkas its image setting source.
public init(downloadURL: URL, cacheKey: String? = nil)
Creates an image resource.
The target image URL from where the image can be downloaded.
The cache key. If
public let cacheKey: String
The key used in cache.
public let downloadURL: URL
The target image URL.