瀏覽代碼

modify textContentType for URL

marionbarker 1 年之前
父節點
當前提交
aa9252e9b6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      LoopFollow/Nightscout/NightscoutSettingsView.swift

+ 1 - 1
LoopFollow/Nightscout/NightscoutSettingsView.swift

@@ -27,7 +27,7 @@ struct NightscoutSettingsView: View {
     private var urlSection: some View {
         Section(header: Text("URL")) {
             TextField("Enter URL", text: $viewModel.nightscoutURL)
-                .textContentType(.URL)
+                .textContentType(.username)
                 .autocapitalization(.none)
                 .disableAutocorrection(true)
                 .onChange(of: viewModel.nightscoutURL) { newValue in