Nuke Documentation

Structure Image​Publisher

@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, *)
public struct ImagePublisher: Publisher  

A publisher that starts a new ImageTask when a subscriber is added.

If the requested image is available in the memory cache, the value is delivered immediately. When the subscription is cancelled, the task also gets cancelled.

ImagePublisher ImagePublisher Publisher Publisher ImagePublisher->Publisher

Conforms To

Publisher

Nested Type Aliases

Output

public typealias Output = ImageResponse

Failure

public typealias Failure = ImagePipeline.Error

Initializers

init(request:​pipeline:​)

public init(request: ImageRequest, pipeline: ImagePipeline)  

Properties

request

public let request: ImageRequest

pipeline

public let pipeline: ImagePipeline

Methods

receive(subscriber:​)

public func receive<S>(subscriber: S) where S: Subscriber, Failure == S.Failure, Output == S.Input