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.
Creates an image resource.
public init(downloadURL: URL, cacheKey: String? = nil)
The target image URL from where the image can be downloaded.
The cache key. If
nil, Kingfisher will use the
downloadURLas the key. Default is