I'm having this weird bug where the keyboard layout changes from QWERTY to AZERTY only for the secure text fields and that too not for all textFields. I have a LoginViewController which has a passwordField , its in AZERTY. But the passwordFields on my SingUpViewController changes automatically from AZERTY to QWERTY.
if #available(iOS 12.0, *) {
passwordField.textContentType = .oneTimeCode
}
It was previously an iOS 12 bug, which was fixed in iOS 12.1. I have also tried the solutions here Native UITextField Secure Text Entry forces English (US) keyboard , but they don't work either.