Since RxSwift contains the following line , you can be sure that something else gives the compiler problems when you get this error for any NSObject Subclass (all in UIKit).
extension NSObject: ReactiveCompatible { }
In my experience, this error occurs when trying to use rx methods or operators incorrectly or if there is a syntax error.
, View ,
Observable.merge(collectionView.rx.streamOne, streamTwo)
-
Observable.of(collectionView.rx.streamOne, streamTwo).merge()
( static Observable.merge RxSwift 3.4)
inputTextField.rx.controlEvent(.editingDidEnd)
, Observable<Void>
loginButton.rx.tap
, Observable, Observer. -, button.rx.tap
.
-
inputTextField.rx.controlEvent(.editingDidEnd)
.subscribe(onNext: { [unowned self] in
self.inputTextField.userInteractionEnabled = false
self.doLogin()
}
, :)