Use NavigationSplitView on macOS with persistent sidebar Settings button

Replaces the macOS TabView(.sidebarAdaptable) root with NavigationSplitView
so the Settings gear can live in the sidebar column's toolbar (next to the
sidebar toggle) instead of only appearing in HomeView's detail toolbar.
This commit is contained in:
Arkadiusz Fal
2026-04-19 14:01:06 +02:00
parent cedefb5c97
commit cee2793399
3 changed files with 125 additions and 151 deletions

View File

@@ -167,6 +167,7 @@ struct YatteeApp: App {
}
#if os(macOS)
.windowStyle(.hiddenTitleBar)
.windowToolbarStyle(.unified)
.defaultSize(width: 1200, height: 800)
// Handle URLs in the existing window instead of opening a new one
.handlesExternalEvents(matching: Set(["*"]))