Bug Description
All text in the compact overlay is rendered twice — transcription results, preview text, update notifications, etc.
For example, saying "测试一下" once shows: 测试一下。测试一下。
Root Cause
In Sources/Typeno/main.swift, the compactView property in OverlayView contains two identical // Text content Group blocks (around lines 2388–2452 in the current main branch). The second block is a copy-paste of the first. Both render into the same HStack, so every Text view appears twice.
Fix
Delete the first // Text content Group (the one without .font(.system(size: 14))), keeping only the second one. One-line diff:
// Text content
Group {
// ... (same content in both blocks)
}
-
- // Text content
- Group {
- // ... (duplicate)
- }
.font(.system(size: 14))
Environment
- macOS 15 (Sequoia)
- TypeNo v1.4.0 (latest release)
- The duplicate is also present in the released binary (confirmed via
strings on the Mach-O)
Bug Description
All text in the compact overlay is rendered twice — transcription results, preview text, update notifications, etc.
For example, saying "测试一下" once shows: 测试一下。测试一下。
Root Cause
In
Sources/Typeno/main.swift, thecompactViewproperty inOverlayViewcontains two identical// Text contentGroup blocks (around lines 2388–2452 in the currentmainbranch). The second block is a copy-paste of the first. Both render into the sameHStack, so everyTextview appears twice.Fix
Delete the first
// Text contentGroup (the one without.font(.system(size: 14))), keeping only the second one. One-line diff:// Text content Group { // ... (same content in both blocks) } - - // Text content - Group { - // ... (duplicate) - } .font(.system(size: 14))Environment
stringson the Mach-O)