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.
    See more

    Declaration

    Swift

    public enum CacheType
  • The item which could be processed by an ImageProcessor

    • image: Input image
    • data: Input data
    See more

    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
    See more

    Declaration

    Swift

    public enum ContentMode
  • 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 in KingfisherOptionsInfo 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 more

    Declaration

    Swift

    public enum ImageTransition