Show enhanced transcript result before original.

This commit is contained in:
Beingpax 2025-11-01 10:27:52 +05:45
parent 4bff63dc00
commit f223a74194

View File

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