Nuke Documentation

Structure Image​Processors.​Composition

public struct Composition: ImageProcessing, Hashable, CustomStringConvertible  

Composes multiple processors.

ImageProcessors.Composition ImageProcessors.Composition ImageProcessing ImageProcessing ImageProcessors.Composition->ImageProcessing Hashable Hashable ImageProcessors.Composition->Hashable CustomStringConvertible CustomStringConvertible ImageProcessors.Composition->CustomStringConvertible

Member Of

ImageProcessors

A namespace for all processors that implement ImageProcessing protocol.

Conforms To

ImageProcessing

Performs image processing.

CustomStringConvertible
Hashable

Initializers

init(_:​)

public init(_ processors: [ImageProcessing])  

Composes multiple processors.

Properties

identifier

public var identifier: String  

hashable​Identifier

public var hashableIdentifier: AnyHashable  

description

public var description: String  

Methods

process(_:​)

public func process(_ image: PlatformImage) -> PlatformImage?  

process(_:​context:​)

public func process(_ container: ImageContainer, context: ImageProcessingContext) -> ImageContainer?  

Processes the given image by applying each processor in an order in which they were added. If one of the processors fails to produce an image the processing stops and nil is returned.

hash(into:​)

public func hash(into hasher: inout Hasher)  

Operators

==

public static func == (lhs: Composition, rhs: Composition) -> Bool