From 58da06bad06e64320bc515c04625e70e03246f2d Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Fri, 3 Mar 2023 15:12:29 +0800 Subject: [PATCH] TDKCandidates // Remove a deprecated condition. --- .../CandidateCellData_SwiftUIImpl.swift | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/Packages/vChewing_CandidateWindow/Sources/CandidateWindow/CandidateCellData_SwiftUIImpl.swift b/Packages/vChewing_CandidateWindow/Sources/CandidateWindow/CandidateCellData_SwiftUIImpl.swift index 18b175d2..d9803bc4 100644 --- a/Packages/vChewing_CandidateWindow/Sources/CandidateWindow/CandidateCellData_SwiftUIImpl.swift +++ b/Packages/vChewing_CandidateWindow/Sources/CandidateWindow/CandidateCellData_SwiftUIImpl.swift @@ -66,16 +66,11 @@ public extension CandidateCellData { } VStack(spacing: 0) { HStack(spacing: 4) { - if UserDefaults.standard.bool(forKey: UserDef.kEnableSwiftUIForTDKCandidates.rawValue) { - Text(AttributedString(attributedStringHeader)) - Text(AttributedString(attributedStringPhrase())) - } else { - Text(verbatim: key).font(.system(size: fontSizeKey).monospaced()) - .foregroundColor(.init(nsColor: fontColorKey)).lineLimit(1) - Text(verbatim: displayedText) - .font(.init(CTFontCreateUIFontForLanguage(.system, fontSizeCandidate, locale as CFString)!)) - .foregroundColor(.init(nsColor: fontColorCandidate)).lineLimit(1) - } + Text(verbatim: key).font(.system(size: fontSizeKey).monospaced()) + .foregroundColor(.init(nsColor: fontColorKey)).lineLimit(1) + Text(verbatim: displayedText) + .font(.init(CTFontCreateUIFontForLanguage(.system, fontSizeCandidate, locale as CFString)!)) + .foregroundColor(.init(nsColor: fontColorCandidate)).lineLimit(1) }.padding(3) }.frame(alignment: .leading) }.fixedSize(horizontal: false, vertical: true)