public enum ImageTransition
No animation transition.
Fade in the loaded image in a given duration.
Flip from left transition.
Flip from right transition.
Flip from top transition.
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.
UIView.AnimationOptionsshould be used in the transition.
animations: The animation block will be applied when setting image.
completion: A block called when the transition animation finishes.
This is a placeholder on macOS now. It is for SwiftUI (KFImage) to identify the fade option only.