As of now I would like to opt out of the new option iOS 11 gives, that is to suggest passwords in the app. When I run the app on iOS 11 I get the autofill option on top of t
You can add extension for UITextContentType like this
extension UITextContentType { public static let unspecified = UITextContentType("unspecified") }
after that, you can use it
if #available(iOS 10.0, *) { passwordField.textContentType = .unspecified }