mirror of
https://github.com/Mueller-Patrick/DHBW-Service-App.git
synced 2024-11-22 09:23:57 +00:00
🎨 Reformatting
This commit is contained in:
parent
5b075dd90d
commit
e814749685
|
@ -17,12 +17,9 @@ struct FirstOpeningSettings: View {
|
||||||
@State private var invalidInputCourse = false
|
@State private var invalidInputCourse = false
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
|
|
||||||
VStack {
|
VStack {
|
||||||
|
|
||||||
Text("welcomeText".localized(tableName: "General", plural: false))
|
Text("welcomeText".localized(tableName: "General", plural: false))
|
||||||
TextField("name".localized(tableName: "General", plural: false), text: self.$name)
|
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(invalidInputCourse ? Color.red : Color.secondary, lineWidth: 1))
|
||||||
.foregroundColor(invalidInputName ? .red : .primary)
|
.foregroundColor(invalidInputName ? .red : .primary)
|
||||||
.textContentType(.name)
|
.textContentType(.name)
|
||||||
|
@ -30,8 +27,7 @@ struct FirstOpeningSettings: View {
|
||||||
.frame(minWidth: 200, idealWidth: nil, maxWidth: 500, minHeight: nil, idealHeight: nil, maxHeight: nil, alignment: .center)
|
.frame(minWidth: 200, idealWidth: nil, maxWidth: 500, minHeight: nil, idealHeight: nil, maxHeight: nil, alignment: .center)
|
||||||
.padding(.horizontal)
|
.padding(.horizontal)
|
||||||
|
|
||||||
TextField("course".localized(tableName: "General", plural: false),
|
TextField("course".localized(tableName: "General", plural: false), text: self.$course)
|
||||||
text: self.$course)
|
|
||||||
.overlay(RoundedRectangle(cornerRadius: 10).stroke(invalidInputCourse ? Color.red : Color.secondary, lineWidth: 1))
|
.overlay(RoundedRectangle(cornerRadius: 10).stroke(invalidInputCourse ? Color.red : Color.secondary, lineWidth: 1))
|
||||||
.onChange(of: course, perform: { value in
|
.onChange(of: course, perform: { value in
|
||||||
self.setDirector()
|
self.setDirector()
|
||||||
|
@ -50,6 +46,7 @@ struct FirstOpeningSettings: View {
|
||||||
.frame(minWidth: 200, idealWidth: nil, maxWidth: 500, minHeight: nil, idealHeight: nil, maxHeight: nil, alignment: .center)
|
.frame(minWidth: 200, idealWidth: nil, maxWidth: 500, minHeight: nil, idealHeight: nil, maxHeight: nil, alignment: .center)
|
||||||
.padding(.horizontal)
|
.padding(.horizontal)
|
||||||
.disabled(true)
|
.disabled(true)
|
||||||
|
|
||||||
Button(action: {
|
Button(action: {
|
||||||
self.saveToCoreData()
|
self.saveToCoreData()
|
||||||
}){
|
}){
|
||||||
|
|
Loading…
Reference in New Issue
Block a user