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

Navbar changed back to splitview but added collapse option - removed hstack version as it was inconsistent among different OS versions

altic-dev6cff58c49410
diff --git a/Sources/Fluid/ContentView.swift b/Sources/Fluid/ContentView.swift
index 104b4076..24098e05 100644
--- a/Sources/Fluid/ContentView.swift
+++ b/Sources/Fluid/ContentView.swift
@@ -127,22 +127,17 @@ struct ContentView: View {
@State private var savedProviders: [SettingsStore.SavedProvider] = []
@State private var selectedProviderID: String = SettingsStore.shared.selectedProviderID
+ @State private var columnVisibility: NavigationSplitViewVisibility = .all
var body: some View {
let layout = AnyView(
- HStack(spacing: 0) {
+ NavigationSplitView(columnVisibility: self.$columnVisibility) {
self.sidebarView
- .frame(width: 250)
-
- // Fixed separator to replace the draggable split view divider
- Rectangle()
- .fill(self.theme.palette.separator)
- .frame(width: 1)
- .ignoresSafeArea()
-
+ .navigationSplitViewColumnWidth(min: 220, ideal: 250, max: 300)
+ } detail: {
self.detailView
- .frame(maxWidth: .infinity, maxHeight: .infinity)
}
+ .navigationSplitViewStyle(.balanced)
)
let tracked = layout.withMouseTracking(self.mouseTracker)
@@ -751,7 +746,6 @@ struct ContentView: View {
self.detailContent
.transition(.opacity)
}
- .toolbar(.hidden, for: .automatic)
}
private var detailContent: AnyView {