diff --git a/Sources/Combine+Rx/Subject+Rx.swift b/Sources/Combine+Rx/Subject+Rx.swift index 79368c8..5d48d70 100644 --- a/Sources/Combine+Rx/Subject+Rx.swift +++ b/Sources/Combine+Rx/Subject+Rx.swift @@ -16,6 +16,7 @@ import RxRelay /// /// - note: This only works when the underlying Failure is Swift.Error, /// since RxSwift has no typed errors. +@available(OSX 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) public protocol AnyObserverConvertible: Combine.Subject where Failure == Swift.Error { associatedtype Output @@ -25,6 +26,7 @@ public protocol AnyObserverConvertible: Combine.Subject where Failure == Swift.E func asAnyObserver() -> AnyObserver } +@available(OSX 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) public extension AnyObserverConvertible { /// Returns a RxSwift AnyObserver wrapping the Subject /// @@ -49,6 +51,7 @@ extension PassthroughSubject: AnyObserverConvertible where Failure == Swift.Erro @available(OSX 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) extension CurrentValueSubject: AnyObserverConvertible where Failure == Swift.Error {} +@available(OSX 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) public extension ObservableConvertibleType { /** Creates new subscription and sends elements to a Combine Subject.