Code: Select all
struct CreateAccountViewController: View {
var body: some View {
Text("Don't have an account?")
}
}
struct FirstViewController: View {
@Environment(\.managedObjectContext) private var viewContext
@State private var emailAddress: String = ""
@State private var emailPassword: String = ""
@State private var isButtonClicked: Bool = false
@State var path = NavigationPath()
var body: some View {
NavigationStack(path: $path) {
VStack {
TextField("Email", text: $emailAddress)
.textFieldStyle(.roundedBorder)
.font(.headline)
.padding(.horizontal, 25)
.autocorrectionDisabled()
.textInputAutocapitalization(.never)
SecureField("Password", text: $emailPassword)
.textFieldStyle(.roundedBorder)
.font(.headline)
.padding(.horizontal, 25)
.padding(.top, 15)
.autocorrectionDisabled()
.textInputAutocapitalization(.never)
Text("The following text fields should be filled.")
.fontWeight(.bold)
.foregroundColor(Color.red)
.opacity(isButtonClicked ? 1 : 0)
.padding(.top, 15)
Ich habe versucht, einen Rand hinzuzufügen, um einen Rand zu erhöhen.>