Fix for handling multiple language keyboards

By specifying alphabet swift wont let users switch to their
preferred language keyboard on these views.
This commit is contained in:
Jackson Harper
2023-01-31 15:21:54 +08:00
parent c3e6321b3d
commit 0bdb90c2af
3 changed files with 1 additions and 7 deletions

View File

@ -114,10 +114,7 @@ struct CreateLabelView: View {
.padding(.bottom, 8)
TextField("Label Name", text: $newLabelName)
#if os(iOS)
.keyboardType(.alphabet)
#endif
.textFieldStyle(StandardTextFieldStyle())
.textFieldStyle(StandardTextFieldStyle())
ScrollView(.horizontal, showsIndicators: false) {
LazyHGrid(rows: rows, alignment: .top, spacing: 20) {

View File

@ -140,7 +140,6 @@ struct CreateProfileView: View {
#if os(iOS)
TextField("", text: $name)
.textContentType(.name)
.keyboardType(.alphabet)
#elseif os(macOS)
TextField("", text: $name)
#endif

View File

@ -131,7 +131,6 @@ struct EmailSignupFormView: View {
.focused($focusedField, equals: .fullName)
#if os(iOS)
.textContentType(.name)
.keyboardType(.alphabet)
#endif
.disableAutocorrection(true)
.submitLabel(.next)
@ -150,7 +149,6 @@ struct EmailSignupFormView: View {
#if os(iOS)
.textInputAutocapitalization(.never)
.textContentType(.username)
.keyboardType(.alphabet)
#endif
.disableAutocorrection(true)
.submitLabel(.done)