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 moreImageDownloader
might 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
UIImageView
extension API in Kingfisher. You can assign an enum value with transition duration as an item inKingfisherOptionsInfo
to 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