Changed course to uppercase

This commit is contained in:
David Huh 2021-02-07 14:57:56 +01:00
parent 7868c72807
commit 99b996550e

View File

@ -32,6 +32,7 @@ struct FirstOpeningSettings: View {
.overlay(RoundedRectangle(cornerRadius: 10).stroke(invalidInputCourse ? Color.red : Color.secondary, lineWidth: 1))
.onChange(of: course, perform: { value in
self.setDirector()
self.course = self.course.uppercased()
})
.foregroundColor(invalidInputCourse ? .red : .primary)
.textContentType(.name)