Skip to content

Fastest and only macOS Dictation app with on-device STT and custom trained AI enhancement model. Windows, iOS testflight! Android, Linux waitlist open! A local Wispr Flow alternative. Follow https://x.com/fluidvoiceapp for more

fix(overlay): show processing status text

altic-dev857c2593fb44
diff --git a/Sources/Fluid/Views/BottomOverlayView.swift b/Sources/Fluid/Views/BottomOverlayView.swift
index a7b541d3..d6811289 100644
--- a/Sources/Fluid/Views/BottomOverlayView.swift
+++ b/Sources/Fluid/Views/BottomOverlayView.swift
@@ -281,6 +281,13 @@ struct BottomOverlayView: View {
}
}
+ // ContentView writes transient status strings into transcriptionText while processing
+ // (e.g. "Transcribing...", "Refining..."). Prefer that when present.
+ private var processingStatusText: String {
+ let t = self.contentState.transcriptionText.trimmingCharacters(in: .whitespacesAndNewlines)
+ return t.isEmpty ? self.processingLabel : t
+ }
+
private var hasTranscription: Bool {
!self.contentState.transcriptionText.isEmpty
}
@@ -386,7 +393,7 @@ struct BottomOverlayView: View {
.lineLimit(1)
.truncationMode(.head)
} else if self.contentState.isProcessing {
- Text(self.processingLabel)
+ Text(self.processingStatusText)
.font(.system(size: self.layout.transFontSize, weight: .medium))
.foregroundStyle(self.modeColor.opacity(0.8))
}
diff --git a/Sources/Fluid/Views/NotchContentViews.swift b/Sources/Fluid/Views/NotchContentViews.swift
index a9747207..819cadf9 100644
--- a/Sources/Fluid/Views/NotchContentViews.swift
+++ b/Sources/Fluid/Views/NotchContentViews.swift
@@ -260,6 +260,13 @@ struct NotchExpandedView: View {
}
}
+ // ContentView writes transient status strings into transcriptionText while processing
+ // (e.g. "Transcribing...", "Refining..."). Prefer that when present.
+ private var processingStatusText: String {
+ let t = self.contentState.transcriptionText.trimmingCharacters(in: .whitespacesAndNewlines)
+ return t.isEmpty ? self.processingLabel : t
+ }
+
private var hasTranscription: Bool {
!self.contentState.transcriptionText.isEmpty
}
@@ -373,7 +380,7 @@ struct NotchExpandedView: View {
// Mode label - shimmer effect when processing
if self.contentState.isProcessing {
- ShimmerText(text: self.processingLabel, color: self.modeColor)
+ ShimmerText(text: self.processingStatusText, color: self.modeColor)
} else {
Text(self.modeLabel)
.font(.system(size: 9, weight: .medium))