Merge pull request #530 from dnicolson/fix-manifest-keyboard-type

Fix manifest keyboard type
This commit is contained in:
Arkadiusz Fal 2023-09-23 17:13:54 +02:00 committed by GitHub
commit 548908b26f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 3 deletions

View File

@ -81,6 +81,10 @@ struct AccountForm: View {
@ViewBuilder var formFields: some View { @ViewBuilder var formFields: some View {
TextField("Username", text: $username) TextField("Username", text: $username)
#if !os(macOS)
.autocapitalization(.none)
#endif
.disableAutocorrection(true)
SecureField("Password", text: $password) SecureField("Password", text: $password)
#if os(tvOS) #if os(tvOS)

View File

@ -50,12 +50,13 @@ struct LocationsSettings: View {
@ViewBuilder var settings: some View { @ViewBuilder var settings: some View {
Section(header: SettingsHeader(text: "Locations Manifest".localized())) { Section(header: SettingsHeader(text: "Locations Manifest".localized())) {
TextField("URL", text: $instancesManifest) TextField("URL", text: $instancesManifest)
Button("Reload manifest", action: loadCountries)
.disabled(instancesManifest.isEmpty)
#if !os(macOS) #if !os(macOS)
.keyboardType(.webSearch) .keyboardType(.URL)
.autocapitalization(.none)
#endif #endif
.disableAutocorrection(true) .disableAutocorrection(true)
Button("Reload manifest", action: loadCountries)
.disabled(instancesManifest.isEmpty)
} }
.padding(.bottom, 4) .padding(.bottom, 4)