Skip to content

Duplicate text in overlay: Text content Group is duplicated in compactView #50

Description

@indiekitai

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions