I have an application that supported 2 languages English and Arabic when changing the app language to Arabic all UITextFields support Arabic numbers only.
For example: When writing an email "test123@gmail.com" It appears at UITextField "test١٢٣@gmail.com"
I tried to set
txtFldEmail.textField.keyboardType = .asciiCapable
txtFldEmail.textField.textContentType = .emailAddress
And also,
@objc func txtFldChanged(_ textField: UITextField) {
textField.text = textField.text?.arToEnIfNeeded
}
But no changes happen still UITextField writes numbers in Arabic.