Fixing small issue, adding Settings, adding Acknowledgements, adding logout functionality

This commit is contained in:
2020-12-28 23:12:09 +01:00
committed by Patrick Müller
parent 6c3e0f498a
commit 52dbfa60ea
7 changed files with 120 additions and 2 deletions
@@ -19,8 +19,9 @@ struct FirstOpeningSettings: View {
var body: some View {
VStack {
Text("welcomeText".localized(tableName: "General", plural: false))
TextField("name".localized(tableName: "General", plural: false), text: self.$name)
.overlay(RoundedRectangle(cornerRadius: 10).stroke(invalidInputCourse ? Color.red : Color.secondary, lineWidth: 1))
.overlay(RoundedRectangle(cornerRadius: 10).stroke(invalidInputName ? Color.red : Color.secondary, lineWidth: 1))
.foregroundColor(invalidInputName ? .red : .primary)
.textContentType(.name)
.textFieldStyle(RoundedBorderTextFieldStyle())
@@ -56,6 +57,7 @@ struct FirstOpeningSettings: View {
.background(Color.blue)
.cornerRadius(15)
}
//.disabled() //TODO: Check all inputs before enabling the button
}
}
}