There's a way to do something like **onTextChanged** from Java?
I need a dynamic mask to brazilian phone number, who is based characters numbers (## ####-#### or ## #####-####).
Is there a way to do this on Swift 3?
Hope this will help you..
textField.addTarget(self, action: #selector(textFieldDidChange(_:)), for: .editingChanged)
func textFieldDidChange(_ textField: UITextField) { }