UITextContentType does not seem to affect type of suggestion.

Originator:cmurphy
Number:rdar://47982765 Date Originated:2/11/19
Status: Resolved:
Product:UIKit Product Version:
Classification: Reproducible:Yes
 
I first encountered this in our production app, where a strong password is being suggested on a Login (not Sign Up) page. Setting `UITextContentType` to `.password` (as opposed to `.newPassword`) did not work to disable the suggestion, nor did setting it to non-password things like `.nickname`. I attached a screenshot of this behavior.

I created a sample project where I mock this situation. In the sample project, when run on a physical device, everything on the Signup page suggests emails, and everything on the Login page suggests saved passwords, despite the `UITextContentType`s reflecting the appropriate type in the text fields on each page. (`.username` and `.newPassword`, `.username` and `.password`). I'm not getting suggested strong passwords, I assume because the test project doesn't have an associated domain. However, it still demonstrates the ineffectiveness of setting `UITextContentType` to guide OS suggestions.

This reproduces very consistently on physical devices, and much more rarely in Simulator.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!