Strong Password Suggestion Clears Other Secure Fields

I can't seem to find information on this but this is causing a critical bug where the Strong Password suggestion sheet presents on any secure field (UIKit) and clears the others when closing it. This means the user cannot enter a password when there is a secure confirm password field because switching fields clears the other.

This looks to be a recent issue but I can't tell when this was introduced or if this is SDK / OS version related. I am finding it in both Xcode 26.2 and 16.4 when running on device (iOS 26.2.1 and XC 26 simulators).

Code to reproduce:

class ViewController: UIViewController {
    override func loadView() {
        let v = UIStackView()
        v.axis = .vertical
        v.layoutMargins = .init(top: 16, left: 16, bottom: 16, right: 16)
        v.isLayoutMarginsRelativeArrangement = true
        view = v
        
        let t1 = UITextField()
        t1.textContentType = .username
        t1.placeholder = "Username"
        v.addArrangedSubview(t1)
        
        let t2 = UITextField()
        t2.isSecureTextEntry = true
        t2.textContentType = .newPassword
        t2.placeholder = "Password"
        t2.clearsOnInsertion = false
        t2.clearsOnBeginEditing = false
        t2.passwordRules = nil
        t2.clearButtonMode = .always
        v.addArrangedSubview(t2)
        
        let t3 = UITextField()
        t3.isSecureTextEntry = true
        t3.textContentType = .newPassword
        t3.placeholder = "Confirm Password"
        t3.clearsOnInsertion = false
        t3.clearsOnBeginEditing = false
        t3.passwordRules = nil
        t3.clearButtonMode = .always
        v.addArrangedSubview(t3)
        
        v.addArrangedSubview(UIView())
    }
}

No matter what textContentType is used the strong password still forcefully breaks the flow and blocks the user.

Hello JoshyMW,

This sounds like a serious enough issue to merit a bug report via Feedback Assistant. Can you please open one, and attach your code snippet in the form of a test project, plus any screenshots or documentation you may have? Once you open the bug report, please post the FB number here for my reference.

If you have any questions about filing a bug report, take a look at Bug Reporting: How and Why?

Thanks for letting us know,

Richard Yeh  Developer Technical Support

Strong Password Suggestion Clears Other Secure Fields
 
 
Q