Nuke Documentation

Structure Image​Decoders.​Empty

public struct Empty: ImageDecoding  

A decoder that returns an empty placeholder image and attaches image data to the image container.

ImageDecoders.Empty ImageDecoders.Empty ImageDecoding ImageDecoding ImageDecoders.Empty->ImageDecoding

Member Of

ImageDecoders

A namespace with all available decoders.

Conforms To

ImageDecoding

An image decoder.

Initializers

init(image​Type:​is​Progressive:​)

public init(imageType: ImageType? = nil, isProgressive: Bool = false)  

Initializes the decoder.

Parameters

type

Image type to be associated with an image container. nil by defalt.

is​Progressive Bool

If false, returns nil for every progressive scan. false by default.

Properties

is​Progressive

public let isProgressive: Bool

is​Asynchronous

public var isAsynchronous: Bool  

Methods

decode​Partially​Downloaded​Data(_:​)

public func decodePartiallyDownloadedData(_ data: Data) -> ImageContainer?  

decode(_:​)

public func decode(_ data: Data) -> ImageContainer?