When I try to create a simple login/signup page and click on the text field, it first lags and says Can’t find or decode rasons. Then it times out and says unable to simulatiously satify constraints. I havn’t added anything that should be really interfiering with constraints(even made a new project to make sure).
This is the code I’ve tried for the basic implementation:
ContentView.swift
import SwiftUI
struct ContentView: View {
@State private var email: String = ""
@State private var password: String = ""
var body: some View {
NavigationStack {
VStack {
TextField("Email", text: $email)
.frame(width: 300, height: 50)
.background(Color(.systemGray6))
.cornerRadius(10)
SecureField("Password", text: $password)
.frame(width: 300, height: 50)
.background(Color(.systemGray6))
.cornerRadius(10)
}
}
}
}
#Preview {
ContentView()
}