ImageCacheResult
public enum ImageCacheResult
Represents the getting image operation from the cache.
- disk: The image can be retrieved from disk cache.
- memory: The image can be retrieved memory cache.
- none: The image does not exist in the cache.
-
The image can be retrieved from disk cache.
Declaration
Swift
case disk(Image)
-
The image can be retrieved memory cache.
Declaration
Swift
case memory(Image)
-
The image does not exist in the cache.
Declaration
Swift
case none
-
Extracts the image from cache result. It returns the associated
Image
value for.disk
and.memory
case. For.none
case,nil
is returned.Declaration
Swift
public var image: Image? { get }