Nuke Documentation

Structure Image​Loading​Options.​Transition

public struct Transition  

An animated image transition.

Member Of

ImageLoadingOptions

A set of options that control how the image is loaded and displayed.

Methods

fade​In(duration:​options:​)

public static func fadeIn(duration: TimeInterval, options: UIView.AnimationOptions = .allowUserInteraction) -> Transition  

Fade-in transition (cross-fade in case the image view is already displaying an image).

custom(_:​)

public static func custom(_ closure: @escaping (ImageDisplayingView, UIImage) -> Void) -> Transition  

Custom transition. Only runs when the image was not found in memory cache.

fade​In(duration:​)

public static func fadeIn(duration: TimeInterval) -> Transition  

Fade-in transition.

custom(_:​)

public static func custom(_ closure: @escaping (ImageDisplayingView, NSImage) -> Void) -> Transition  

Custom transition. Only runs when the image was not found in memory cache.