One Logo Pool Ball
Combine · IOS API REFERENCE

Publishers.CompactMap

struct · iOS 13.0+ · SDK 27.1

struct CompactMap<Upstream, Output> where Upstream : Publisher

A publisher that republishes all non-nil results of calling a closure with each received element.

Members (0)

This type has no directly callable members in this snapshot. See the framework’s skipped declarations for unsupported APIs.

Skipped declarations

6 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

Publishers.CompactMap.upstream

This declaration needs Swift generic type arguments. (no canonical witness for Upstream)

Publishers.CompactMap.transform

This declaration needs Swift generic type arguments. (no canonical witness for Upstream.Output)

Publishers.CompactMap.init(upstream:transform:)

This declaration needs Swift generic type arguments. (no canonical witness for Upstream)

Publishers.CompactMap.receive(subscriber:)

This declaration needs Swift generic type arguments. (no canonical witness for S)

Publishers.CompactMap.compactMap(_:)

callback cannot propagate synchronous failure

Publishers.CompactMap.map(_:)

callback cannot propagate synchronous failure

All Combine types →