I want to observe the property UITextfield.editing
. I\'m using this code:
self.money.rx_observe(Bool.self, \"editing\").subscribeNext { (value) in
Since RxSwift 4.0, there is two specific control events : textDidBeginEditing
and textDidEndEditing
You can used it like this :
textField.rx.textDidEndEditing
.asObservable()
.subscribe(onNext: {
print("End of edition")
}).disposed(by: disposeBag)
textField.rx.textDidBeginEditing
.asObservable()
.subscribe(onNext: {
print("Start of edition")
}).disposed(by: disposeBag)