PrefUI // Fix a compilation error happened with Xcode 14.3.

This commit is contained in:
ShikiSuen 2023-06-03 03:44:04 +08:00
parent 0990fdceb1
commit d269c82bcd
1 changed files with 2 additions and 3 deletions

View File

@ -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)