Secure Field "Lags" when certain conditions met.

Hello,

I was doing some tasks, and then noticed a small lag/delay when tapping on a Secure field, I tried to investigate it, and noticed this was not my app issue, so I got it into a Playground and the issue is there (Is there in Physical devices, simulator, playground, iPad playground)

So I suppose this can be SwiftUI Issue:

import SwiftUI

struct ContentView: View {
    
    @State var field1: String = ""
    @State var field2: String = ""
    @State var field3: String = ""
    
    var body: some View {
        VStack {
            TextField("", text: $field1, prompt: Text("User"))
            SecureField("", text: $field2, prompt: Text("pass"))
            SecureField("", text: $field3, prompt: Text("uvv"))
        }
    }
}

So When the focus is set on Field1 TextField, and then you tap the second field, there is a small delay (Even in simulator, there is a small jump trying to show the keyboard, and in an iPad with physical keyboard, the on-screen keyboard is shown).

The console only shows this message:

Cannot show Automatic Strong Passwords for app bundleID: ... due to error: Cannot save passwords for this app. Make sure you have set up Associated Domains for your app and AutoFill Passwords is enabled in Settings

If you change the order of the elements, or some types, this lag disappears. (For example, adding first the SecureField : [SecureField, TextField, SecureField] the Issue disappears.)

(Even tried to add textContentType as password, newPassword and emailAddress without helping any bit.

What version of iOS/iPadOS is this in?

You should probably raise this as a bug in the usual way. It won't really get progressed if it's only posted in these Developer Forums.

You can raise the issue at: https://feedbackassistant.apple.com/ and post the FB number here if you want.

Secure Field "Lags" when certain conditions met.
 
 
Q