ContentType of UITextField is not working in Swift

textField_firstName.autocorrectionType = .yes
textField_firstName.textContentType = .givenName
textField_firstName.keyboardType = .namePhonePad

Here is my code for autofill First Name in UITextField on my SignUp form. But it is not working properly. Its repeating first name on some devices means first name appear twice when tap on suggestion and on some devices its not working at all. Any help will be highly appreciable.
My autofill code also not working on properly on "Last Name", "Phone" & "Email" field.
I just noticed something. The duplication is only happening if the name (first or last) is less than 8 characters

Regards,
ContentType of UITextField is not working in Swift
 
 
Q