I have the following 2 textfield as shown in my code my question how can I differentiate which text field is being changed
TextField("", text: $phoneAuthViewModel.firstCodeField)
.frame(width:40, height: 48, alignment: .center)
.background(Color(red: 1, green: 1, blue: 1, opacity: 0.3))
.foregroundColor(.black)
.cornerRadius(5)
.keyboardType(.phonePad)
.accentColor(.white)
.multilineTextAlignment(.center)
.onChange(of: phoneAuthViewModel.firstCodeField, perform: editingChanged(_:))
TextField("", text: $phoneAuthViewModel.country)
.frame(width:40, height: 48, alignment: .center)
.background(Color(red: 1, green: 1, blue: 1, opacity: 0.3))
.foregroundColor(.black)
.cornerRadius(5)
.keyboardType(.phonePad)
.accentColor(.white)
.multilineTextAlignment(.center)
.onChange(of: phoneAuthViewModel.country, perform: editingChanged(_:))
func editingChanged(_ value: String) {
}
Now How can i determine which textfield is being edited. Is it possible to pass an agrument with editingChanged Function