From 0bdb90c2af67a28904578e22ab35e4d72b090f67 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Tue, 31 Jan 2023 15:21:54 +0800 Subject: [PATCH] Fix for handling multiple language keyboards By specifying alphabet swift wont let users switch to their preferred language keyboard on these views. --- apple/OmnivoreKit/Sources/App/Views/Labels/LabelsView.swift | 5 +---- .../Sources/App/Views/Registration/CreateProfileView.swift | 1 - .../Views/Registration/EmailAuth/EmailSignupFormView.swift | 2 -- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/apple/OmnivoreKit/Sources/App/Views/Labels/LabelsView.swift b/apple/OmnivoreKit/Sources/App/Views/Labels/LabelsView.swift index 38af784d5..742052faa 100644 --- a/apple/OmnivoreKit/Sources/App/Views/Labels/LabelsView.swift +++ b/apple/OmnivoreKit/Sources/App/Views/Labels/LabelsView.swift @@ -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) { diff --git a/apple/OmnivoreKit/Sources/App/Views/Registration/CreateProfileView.swift b/apple/OmnivoreKit/Sources/App/Views/Registration/CreateProfileView.swift index d637e0e61..605da0dac 100644 --- a/apple/OmnivoreKit/Sources/App/Views/Registration/CreateProfileView.swift +++ b/apple/OmnivoreKit/Sources/App/Views/Registration/CreateProfileView.swift @@ -140,7 +140,6 @@ struct CreateProfileView: View { #if os(iOS) TextField("", text: $name) .textContentType(.name) - .keyboardType(.alphabet) #elseif os(macOS) TextField("", text: $name) #endif diff --git a/apple/OmnivoreKit/Sources/App/Views/Registration/EmailAuth/EmailSignupFormView.swift b/apple/OmnivoreKit/Sources/App/Views/Registration/EmailAuth/EmailSignupFormView.swift index 9ae01eb8c..25a23c143 100644 --- a/apple/OmnivoreKit/Sources/App/Views/Registration/EmailAuth/EmailSignupFormView.swift +++ b/apple/OmnivoreKit/Sources/App/Views/Registration/EmailAuth/EmailSignupFormView.swift @@ -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)