search: disable autocorrection

Changelog-Fixed: Disable autocorrection on search
This commit is contained in:
William Casarin
2022-12-19 22:32:38 -08:00
parent 189b671108
commit cd591307a8

View File

@@ -19,6 +19,7 @@ struct SearchHomeView: View {
TextField("", text: $search) TextField("", text: $search)
.padding(8) .padding(8)
.padding(.leading, 35) .padding(.leading, 35)
.autocorrectionDisabled(true)
.textInputAutocapitalization(.never) .textInputAutocapitalization(.never)
Label("", systemImage: "xmark.square") Label("", systemImage: "xmark.square")
.padding(EdgeInsets(top: 0.0, leading: 0.0, bottom: 0.0, trailing: 10.0)) .padding(EdgeInsets(top: 0.0, leading: 0.0, bottom: 0.0, trailing: 10.0))