Why iOS convert English numbers to Arabic at UITextField utilizing Swift language and iOS 15?


I’ve an software that supported 2 languages English and Arabic when altering the app language to Arabic all UITextFields help Arabic numbers solely.

For instance:
When writing an e-mail “[email protected]
It seems at UITextField “test١٢٣@gmail.com

I attempted to set

    txtFldEmail.textField.keyboardType = .asciiCapable
    txtFldEmail.textField.textContentType = .emailAddress

And likewise,

    @objc func txtFldChanged(_ textField: UITextField) {
         textField.textual content = textField.textual content?.arToEnIfNeeded
    }

However no adjustments occur nonetheless UITextField writes numbers in Arabic.

Similar Posts

Leave a Reply

Your email address will not be published.