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): throttle pill border animation

altic-dev80871a899ffc
diff --git a/Sources/Fluid/Views/BottomOverlayView.swift b/Sources/Fluid/Views/BottomOverlayView.swift
index 098a0b7d..eba247e6 100644
--- a/Sources/Fluid/Views/BottomOverlayView.swift
+++ b/Sources/Fluid/Views/BottomOverlayView.swift
@@ -2784,7 +2784,7 @@ struct BottomOverlayView: View {
if self.isPillSize {
// Glossy border: a bright highlight that slowly rotates around the edge.
- TimelineView(.animation) { timeline in
+ TimelineView(.animation(minimumInterval: 1.0 / 30.0)) { timeline in
let seconds = timeline.date.timeIntervalSinceReferenceDate
let angle = (seconds.truncatingRemainder(dividingBy: 6.0) / 6.0) * 360.0
RoundedRectangle(cornerRadius: self.layout.cornerRadius)