Multiple secure UITextField changes keyboard language

Hey everybody,

I'm working in a german app that includes a Registration screen that includes 2 UITextField to type and confirm user's email (keyboardType = .emailAddress) and 2 more to do the same with password (isSecureTextEntry = true). We have the next problem:

. User has german and english keyboards in their phone, with the german one as main language.
. System language and region are German and Germany.
. User taps first on any of the password UITextField.
. System opens a german keyboard.
. User taps on any of the email UITextField.
. System switches to english keyboard.
. User can switch manually to german keyboard back.

Why is it happening and how can I solve it? Could we confirm that this is an iOS bug? In that case it would be really old one.

Other considerations:
. I'm not using textContentType on my original code but I have tried some different solutions using it and none works.
. If user has only german keyboard, this is not happening.
. If user taps first on any of the email UITextField, it doesn't happen either.

Solutions I've tried:
https://stackoverflow.com/a/53477798
https://stackoverflow.com/a/63798499

Thank your for your help.
So solutions don't work ?

Seems problems comes from autocorrection…
Have you autocorrection enabled in the textFields ? If so, try to disable.

They explain here how to fix it
https ://www.reddit. com/r/ios/comments/d6yv74/thebesthiddenios13featureatleastfor/

PS: what are the Text Input traits defined in IB for the different textFields ?


I read here that keyboard may be defined by textField in the app.
But I could not find this on an iPhone…

Why does the keyboard language switch randomly?
https ://apple.stackexchange .com/questions/360701/iphone-why-does-the-keyboard-language-switch-randomly


Sorry for the delay. I've been trying to find a reason for this problem, cause I thought I already solved it setting the contentType = .newPassword to both Password fields. Actually, it solved the problem I described above, but some users described another problem regarding the auto fill feature from Password Manager.

. Now it happens that some users have this Problem if they have the auto fill feature enabled in their phones. It seems that something goes wrong with Password Manager and it changes the keyboard language. It doesn't happen to all users.
. System ignores completely the contentType (I have tried some of them) and thinks that a secure text entry always a password is, showing the Password Manager toolbar
. AutoCorrection is disabled and the rest of traits are defaults but keyboardType for Email fields.
. I configured the associated domains for deeplinking but I didn't touch it for Password Manager.

Do you know if there is any way to disable the Password Manager? It would be a workaround to avoid using a buggy feature.
Is there any guide that shows how to configure a screen with multiple secure text entries?

EDIT: Ok, something crazy. I have just changed the name of the VC, before it was RegistrationViewController, and now Password Manager doesn't react in that screen!!
Multiple secure UITextField changes keyboard language
 
 
Q