From d269c82bcdeb4a572241622dd54544705f1ac6d4 Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Sat, 3 Jun 2023 03:44:04 +0800 Subject: [PATCH] PrefUI // Fix a compilation error happened with Xcode 14.3. --- Source/Modules/UIModules/PrefUI/VwrPrefPaneKeyboard.swift | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Source/Modules/UIModules/PrefUI/VwrPrefPaneKeyboard.swift b/Source/Modules/UIModules/PrefUI/VwrPrefPaneKeyboard.swift index c5a7922e..5c49f13c 100644 --- a/Source/Modules/UIModules/PrefUI/VwrPrefPaneKeyboard.swift +++ b/Source/Modules/UIModules/PrefUI/VwrPrefPaneKeyboard.swift @@ -111,9 +111,8 @@ struct VwrPrefPaneKeyboard: View { selection: $alphanumericalKeyboardLayout ) { ForEach(0 ... (IMKHelper.allowedAlphanumericalTISInputSources.count - 1), id: \.self) { id in - if let theEntry = IMKHelper.allowedAlphanumericalTISInputSources[id] { - Text(theEntry.vChewingLocalizedName).tag(theEntry.identifier) - } + let theEntry = IMKHelper.allowedAlphanumericalTISInputSources[id] + Text(theEntry.vChewingLocalizedName).tag(theEntry.identifier) }.id(UUID()) } .labelsHidden().frame(width: 290)