Kingfisher Documentation

Enumeration Image​Transition

public enum ImageTransition  

Enumeration Cases

none

case none

No animation transition.

fade

case fade(TimeInterval) 

Fade in the loaded image in a given duration.

flip​From​Left

case flipFromLeft(TimeInterval) 

Flip from left transition.

flip​From​Right

case flipFromRight(TimeInterval) 

Flip from right transition.

flip​From​Top

case flipFromTop(TimeInterval) 

Flip from top transition.

flip​From​Bottom

case flipFromBottom(TimeInterval) 

Flip from bottom transition.

custom

case custom(duration: TimeInterval,
                 options: UIView.AnimationOptions,
              animations: ((UIImageView, UIImage) -> Void)?,
              completion: ((Bool) -> Void)?) 

Custom transition defined by a general animation block.

  • duration: The time duration of this custom transition.

  • options: UIView.AnimationOptions should be used in the transition.

  • animations: The animation block will be applied when setting image.

  • completion: A block called when the transition animation finishes.

none

case none

fade

case fade(TimeInterval) 

This is a placeholder on macOS now. It is for SwiftUI (KFImage) to identify the fade option only.