I have a username textfield with textContentType as username and another with the password. Along with this, I had an email text field without any textContentType. When saving the credentials email is being saved as username but not the value from username text field.
usernametextfield.textContentType = .username
emailtextfield.textContentType = UITextContentType(rawValue:"")
How to save the username instead of email?