Generic Structure

Publishers.MapKeyPath

A publisher that publishes the value of a key path.

Declaration

struct MapKeyPath<Upstream, Output> where Upstream : Publisher

Topics

Type Aliases

typealias Publishers.MapKeyPath.Failure

The kind of errors this publisher might publish.

Instance Properties

let keyPath: KeyPath<Upstream.Output, Output>

The key path of a property to publish.

let upstream: Upstream

The publisher from which this publisher receives elements.

Instance Methods

func switchToLatest() -> Publishers.SwitchToLatest<Output, Publishers.MapKeyPath<Upstream, Output>>

Relationships

Conforms To

See Also

Identifying Properties with Key Paths

struct Publishers.MapKeyPath2

A publisher that publishes the values of two key paths as a tuple.

struct Publishers.MapKeyPath3

A publisher that publishes the values of three key paths as a tuple.