Post

Replies

Boosts

Views

Activity

Reply to Auto Layout Constraint Conflict in SwiftUI When Tapping TextField
I've also had the same issue with a login view with a warning that denote the exact same constraints your warning did. I completely stripped my view, and after doing so was able to pinpoint what was causing the issue. I have a view called InputView that had a text field, and depending on a Boolean parameter, it'd give me either a SecureField or a TextField: if isSecureField { SecureField(placeholder, text: $text)//.textInputAutocapitalization(.never) //.font(.system(size: 15)).frame(height: 30) } else { TextField(placeholder, text: $text).textInputAutocapitalization(.never) .font(.system(size: 15)).frame(height: 30) } Upon getting rid of the if statement and making the view only for a TextField and eliminating the isSecureField parameter, the error did not occur anymore: TextField(placeholder, text: $text).textInputAutocapitalization(.never) .font(.system(size: 15)).frame(height: 30) I wish I could tell you why this happens, but I don't really know and it doesn't seem like your code puts you in the same situation as me. Despite figuring out that error, I still get these: <0x10710add0> Gesture: System gesture gate timed out. CAReportingClient.mm:532 Attempted to remove a reporter not created by this client { careporter_id=17,540,646,436,865 } -[RTIInputSystemClient remoteTextInputSessionWithID:performInputOperation:] perform input operation requires a valid sessionID , so my code isn't perfect either. I hope I could help!
Mar ’24