Disable auto capitalization and auto correction in the global search bar

This commit is contained in:
Benoit Martins 2024-07-01 16:47:44 +02:00
parent 3994129177
commit bdd38a80b6

View file

@ -433,6 +433,8 @@ struct ContentView: View {
))
.default_text_style_white_700(styleSize: 15)
.padding(.all, 6)
.disableAutocorrection(true)
.autocapitalization(.none)
.accentColor(.white)
.scrollContentBackground(.hidden)
.focused($focusedField)
@ -469,6 +471,8 @@ struct ContentView: View {
.default_text_style_700(styleSize: 15)
.padding(.all, 6)
.focused($focusedField)
.disableAutocorrection(true)
.autocapitalization(.none)
.onAppear {
self.focusedField = true
}