From 9491855fb8c3e8a2152b90659694cad767eccacf Mon Sep 17 00:00:00 2001 From: Stuart Breckenridge Date: Sat, 4 Jul 2020 09:31:58 +0800 Subject: [PATCH] 2199 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On iOS: • Autocorrection and auto capitalisation is disabled on URL field On macOS: • Autocorrection is disabled. --- Multiplatform/Shared/Add/AddWebFeedView.swift | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Multiplatform/Shared/Add/AddWebFeedView.swift b/Multiplatform/Shared/Add/AddWebFeedView.swift index 692484e4f..9e205ae8c 100644 --- a/Multiplatform/Shared/Add/AddWebFeedView.swift +++ b/Multiplatform/Shared/Add/AddWebFeedView.swift @@ -78,7 +78,7 @@ struct AddWebFeedView: View { folderPicker } .listStyle(InsetGroupedListStyle()) - .navigationTitle("Add Web Feed") + .navigationBarTitle("Add Web Feed") .navigationBarTitleDisplayMode(.inline) .navigationBarItems(leading: Button("Cancel", action: { @@ -99,7 +99,14 @@ struct AddWebFeedView: View { var urlTextField: some View { HStack { Text("Feed:") + #if os(iOS) TextField("URL", text: $viewModel.providedURL) + .disableAutocorrection(true) + .autocapitalization(UITextAutocapitalizationType.none) + #else + TextField("URL", text: $viewModel.providedURL) + .disableAutocorrection(true) + #endif } }