In ReactiveCocoa 5, how can I convert a RACDisposable
to a Disposable
? If I try to add a RACDisposable
to a CompositeDisposable
, I get "Binary operator '+=' cannot be applied to operands of type 'CompositeDisposable' and 'RACDisposable'".
Asked
Active
Viewed 176 times
1

Luke
- 7,110
- 6
- 45
- 74
1 Answers
0
Use a closure to wrap the Objective-C things.
let disposable = CompositeDisposable()
let racDisposable = RACDisposable()
disposable += {
racDisposable.dispose()
}

Cosyn
- 4,404
- 1
- 33
- 26