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): ignore pill shadow hit area
altic-dev86c540294936
diff --git a/Sources/Fluid/Views/BottomOverlayView.swift b/Sources/Fluid/Views/BottomOverlayView.swiftindex eba247e6..6cd366e7 100644--- a/Sources/Fluid/Views/BottomOverlayView.swift+++ b/Sources/Fluid/Views/BottomOverlayView.swift@@ -251,7 +251,7 @@ final class BottomOverlayWindowController {panel.animationBehavior = .nonelet contentView = BottomOverlayView()- let hostingView = NSHostingView(rootView: contentView)+ let hostingView = BottomOverlayHostingView(rootView: contentView)// Let SwiftUI determine the sizelet fittingSize = hostingView.fittingSize@@ -1741,6 +1741,18 @@ private struct PromptSelectorAnchorReader: NSViewRepresentable {}}+private final class BottomOverlayHostingView: NSHostingView<BottomOverlayView> {+ private let pillShadowPadding: CGFloat = 26++ override func hitTest(_ point: NSPoint) -> NSView? {+ if SettingsStore.shared.overlaySize == .pill {+ let visibleOverlayBounds = self.bounds.insetBy(dx: self.pillShadowPadding, dy: self.pillShadowPadding)+ guard visibleOverlayBounds.contains(point) else { return nil }+ }+ return super.hitTest(point)+ }+}+private struct DynamicPreviewHeightPreferenceKey: PreferenceKey {static var defaultValue: CGFloat = 0