Nuke Documentation

Protocol Nuke_Image​Displaying

@objc public protocol Nuke_ImageDisplaying  

Displays images. Add the conformance to this protocol to your views to make them compatible with Nuke image loading extensions.

The protocol is defined as @objc to make it possible to override its methods in extensions (e.g. you can override nuke_display(image:data:) in UIImageView subclass like `Gifu.ImageView).

The protocol and its methods have prefixes to make sure they don't clash with other similar methods and protocol in Objective-C runtime.

Default Implementations


var layer: CALayer?  



@objc func nuke_display(image: PlatformImage?, data: Data?) 

Display a given image.


@objc var layer: CALayer?