You could implement UITextFieldDelegate
and your delegate will be called when the user enter something in your text field.
-
First set the delegate to self
txtField.delegate = self
-
Use this if you want to change the other fields when the user is done editiing your master field
func textFieldDidEndEditing(_ textField: UITextField, reason: UITextFieldDidEndEditingReason) { // change other fields here otherField.text = textField.text }