public enum Source
Represents an image setting source for Kingfisher methods.
Source value indicates the way how the target image can be retrieved and cached.
network: The target image should be got from network remotely. The associated
Resourcevalue defines detail information like image URL and cache key.
provider: The target image should be provided in a data format. Normally, it can be an image from local storage or in any other encoding format (like Base64).
Represents the source task identifier when setting an image to a view with extension methods.
The target image should be got from network remotely. The associated
value defines detail information like image URL and cache key.
public var cacheKey: String
The cache key defined for this source value.
public var url: URL?
The URL defined for this source value.
.network source, it is the
downloadURL of associated
.provider value, it is always
public func hash(into hasher: inout Hasher)