Nuke Documentation

Structure Image​Response

public struct ImageResponse  

An image response that contains a fetched image and some metadata.

Nested Types

ImageResponse.CacheType

A cache type.

Initializers

init(container:​url​Response:​cache​Type:​)

public init(container: ImageContainer, urlResponse: URLResponse? = nil, cacheType: CacheType? = nil)  

Initializes the response with the given image.

Properties

container

public let container: ImageContainer

An image container with an image and associated metadata.

image

public var image: NSImage  

A convenience computed property that returns an image from the container.

image

public var image: UIImage  

A convenience computed property that returns an image from the container.

url​Response

public let urlResponse: URLResponse? 

A response. nil unless the resource was fetched from the network or an HTTP cache.

cache​Type

public let cacheType: CacheType? 

Contains a cache type in case the image was returned from one of the pipeline caches (not including any of the HTTP caches if enabled).