iOS: Disable autocorrection on URL bar
This commit is contained in:
parent
ef47b59aab
commit
d8e93e481d
@ -54,6 +54,8 @@ struct ContentView: View {
|
|||||||
private var urlBar: some View {
|
private var urlBar: some View {
|
||||||
TextField("URL", text: $urlFieldContents, onCommit: commitURL)
|
TextField("URL", text: $urlFieldContents, onCommit: commitURL)
|
||||||
.keyboardType(.URL)
|
.keyboardType(.URL)
|
||||||
|
.autocapitalization(.none)
|
||||||
|
.disableAutocorrection(true)
|
||||||
.textFieldStyle(RoundedBorderTextFieldStyle())
|
.textFieldStyle(RoundedBorderTextFieldStyle())
|
||||||
.padding([.leading, .trailing, .bottom])
|
.padding([.leading, .trailing, .bottom])
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user