Prefixes the output of this publisher with the elements emitted by the given publisher.
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 13.0+
- watchOS 6.0+
- Xcode 11.0+
The prefixing publisher.
A publisher that prefixes the prefixing publisher’s elements prior to this publisher’s elements.
prepend(_:) to publish values from two publishers when you need to prepend one publisher’s elements to another.
In the example below, a publisher of
prefix publishes its elements before the
data publishes its elements: