Publisher

public struct Publisher : Combine.Publisher

The publisher that broadcasts changes to the wrapped value.

Uses CurrentValueSubject which:

  • Maintains the current value
  • Sends current value to new subscribers
  • More suitable than PassthroughSubject for property wrapper scenarios
  • Declaration

    Swift

    public typealias Output = Value
  • Declaration

    Swift

    public typealias Failure = Never
  • Declaration

    Swift

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