In my sign up form in my app, the keyboard suggests an entry for my first name, last name, eventually a strong password, but not for my email address. I have content-type set to email in the storyboard and in code:
self.emailTxt.textContentType = .emailAddress
But no suggestion. You can see in the image below, the keyboard suggests the first and last name of the user, but for email it is blank.
In the next image I show that in signing up for sites on safari, it does suggest my email. Even moreso, it suggests to autofill the entire page:
What could I be missing?
So, the issue in general was that apple's autofill was having a difficult time determining if I was creating an account. From their documentation here:
By default, the system selects the a keyboard based on the input view’s textContentType property; however, you can mix the input view’s text content type and keyboard type to explicitly define the desired keyboard. For example, if your site uses email addresses as user names, set the input view’s textContentType property to .username, and set the keyboardType property to .UIKeyboardType.emailAddress.
So, for the email address I set the content type to username and the keyboard type to email, and all is fixed.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With