iOS: Disable autocorrection on URL bar

This commit is contained in:
Shadowfacts 2020-09-27 23:00:03 -04:00
parent ef47b59aab
commit d8e93e481d
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5

View File

@ -54,6 +54,8 @@ struct ContentView: View {
private var urlBar: some View {
TextField("URL", text: $urlFieldContents, onCommit: commitURL)
.keyboardType(.URL)
.autocapitalization(.none)
.disableAutocorrection(true)
.textFieldStyle(RoundedBorderTextFieldStyle())
.padding([.leading, .trailing, .bottom])
}