Enumerations
The following enumerations are available globally.
-
Cache type of a cached image.
- None: The image is not cached yet when retrieving it.
- Memory: The image is cached in memory.
- Disk: The image is cached in disk.
Declaration
Swift
public enum CacheType
-
The code of errors which
See moreImageDownloadermight encountered.Declaration
Swift
public enum KingfisherError: Int
-
Declaration
Swift
public enum ImageProcessItem -
Specify how a size adjusts itself to fit a target size.
- none: Not scale the content.
- aspectFit: Scale the content to fit the size of the view by maintaining the aspect ratio.
- aspectFill: Scale the content to fill the size of the view
Declaration
Swift
public enum ContentMode
-
Undocumented
See more
-
Image transition is not supported on macOS.
See more -
Transition effect which will be used when an image downloaded and set by
UIImageViewextension API in Kingfisher. You can assign an enum value with transition duration as an item inKingfisherOptionsInfoto enable the animation transition.Apple’s UIViewAnimationOptions is used under the hood. For custom transition, you should specified your own transition options, animations and comletion handler as well.
See moreDeclaration
Swift
public enum ImageTransition
-
Items could be added into KingfisherOptionsInfo.
See moreDeclaration
Swift
public enum KingfisherOptionsInfoItem
View on GitHub
Install in Dash
Enumerations Reference