I am using RxSwift for a project. I am using the control events to handle the textfield events such as follows.
textField.rx.controlEvent([.editingDidEndOnExit]).subscribe { _ in }.disposed(by: disposeBag)
Now I need to handle a delegate method
textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -> Bool
If I add the delegate to the textField, the controlEvents stop working.
Does anybody have a suggestion about how can I handle this case where I can use both the control events and delegate methods?
Or should I just remove either of these handling.
Thanks.