This is how I define actions for my password UITextFields:
mainView.passwordTextField.rx.text.orEmpty.bind(to: viewModel.password).disposed(by: disposeBag)
mainView.passwordTextField.rx.controlEvent([.editingChanged])
.asObservable()
.subscribe { [mainView, viewModel, weak self] ale in
print(">>>>>")
print(viewModel.password.value)
self?.updateView()
}.disposed(by: disposeBag)
And this is how it look like after password autofill is called there:
>>>>>>
cckSG%in51ZZ65y
And when I select from suggest autopassword My own password all fields are reset and are empty, but nothing is called. And in viewModel.password.value there is still previous non empty value. How can I resolve it?
editingChangedis described as "touch event" in UIKit doc. So the system-provided autofill may be simulating touches. The field clearing effect of "My own password" then probably does not simulate touches. Try observe some other control events not related to touches, ultimatelyallEvents.Thought #2: or subscribe to the
textitself, not to the control events.