Strong password autofill appears in iOS simulator
Not sure if it was like that since the beginning but setting isSecureTextEntry = true
is enough to trigger that bug as well (at least in Xcode 12.2).
Therefore, the work-around which worked for me was:
let field = UITextField()if #available(iOS 11.0, *) { #if targetEnvironment(simulator) // Do Not enable '.password' or '.newPassword' or 'isSecureTextEntry' text content type on simulator as it ends up with annoying behaviour: // 'Strong Password' yellow glitch preventing from editing field. print("Simulator! not setting password-like text content type") #else field.textContentType = .password field.isSecureTextEntry = true #endif}field.placeholder = "Password"