Observing a UITextfield's text value with RxSwift as in code example below does not get updated when programmatically setting the textfield's value like this customTextField.text = "Hello World"
customTextField.rx.text
.bind(onNext: { textValue in
print( textValue )
}).disposed(by: disposeBag)
I have realized that this is due to setting the value programmatically does not fire the valueChanged
control property event.
How would I go about ensuring that the valueChanged
event gets fired when setting the value programmatically?