Closed sedwo closed 6 years ago
@antoninbiret Yet this work fine:
// Bind row UI to viewModel Variable
self.quantityRow?.cell.stepper.rx.value
.asObservable()
.bind(to: self.viewModel.quantityRxDouble)
.disposed(by: self.disposeBag)
note: changed quantityRxString
to quantityRxDouble
Solved!
let quantityRxDouble = Variable<Double?>(0.0)
// Bind viewModel Variable to --> row UI
self.viewModel.quantityRxDouble
.asObservable()
.bind(to: self.quantityRow!.rx.value)
.disposed(by: self.disposeBag)
// Bind row UI to viewModel Variable
self.quantityRow!.rx.value
.asObservable()
.bind(to: self.viewModel.quantityRxDouble)
.disposed(by: self.disposeBag)
I'm trying the following:
But it fails with: