From 94f953dfe518fd350872590a5931ab00d598ae83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Sun, 3 Dec 2023 21:31:10 +0800 Subject: [PATCH] Try fix profile editor --- .../Views/Profile/EditProfileContentView.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ApplicationLibrary/Views/Profile/EditProfileContentView.swift b/ApplicationLibrary/Views/Profile/EditProfileContentView.swift index 1aa7046..042c214 100644 --- a/ApplicationLibrary/Views/Profile/EditProfileContentView.swift +++ b/ApplicationLibrary/Views/Profile/EditProfileContentView.swift @@ -47,8 +47,12 @@ } } .font(Font.system(.caption2, design: .monospaced)) - .autocorrectionDisabled() + .autocorrectionDisabled(true) + // https://stackoverflow.com/questions/66721935/swiftui-how-to-disable-the-smart-quotes-in-texteditor + // https://stackoverflow.com/questions/74034171/textfield-with-autocorrectiondisabled-still-shows-predictive-text-bar + .textContentType(.init(rawValue: "")) #if os(iOS) + .keyboardType(.asciiCapable) .textInputAutocapitalization(.none) .background(Color(UIColor.secondarySystemGroupedBackground)) #elseif os(macOS)