From f223a74194eef90b16569015d3d84764c0f28513 Mon Sep 17 00:00:00 2001 From: Beingpax Date: Sat, 1 Nov 2025 10:27:52 +0545 Subject: [PATCH] Show enhanced transcript result before original. --- VoiceInk/Views/TranscriptionCard.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/VoiceInk/Views/TranscriptionCard.swift b/VoiceInk/Views/TranscriptionCard.swift index e9612b2..37afd41 100644 --- a/VoiceInk/Views/TranscriptionCard.swift +++ b/VoiceInk/Views/TranscriptionCard.swift @@ -17,10 +17,11 @@ struct TranscriptionCard: View { @State private var selectedTab: ContentTab = .original private var availableTabs: [ContentTab] { - var tabs = [ContentTab.original] + var tabs: [ContentTab] = [] if transcription.enhancedText != nil { tabs.append(.enhanced) } + tabs.append(.original) if transcription.aiRequestSystemMessage != nil || transcription.aiRequestUserMessage != nil { tabs.append(.aiRequest) } @@ -262,7 +263,7 @@ struct TranscriptionCard: View { } .onChange(of: isExpanded) { oldValue, newValue in if newValue { - selectedTab = .original + selectedTab = transcription.enhancedText != nil ? .enhanced : .original } } }