fix(app): hide native title bar text duplicating the toolbar pill

.windowToolbarStyle(.unifiedCompact(showsTitle: false)) — macOS's
unified toolbar renders the native title in the same row as a
.navigation-placed item, so setting both to the same collection/
document name showed it twice with the back button in between.
navigationTitle stays set for the Window menu, just not rendered here.
This commit is contained in:
2026-08-14 01:03:39 +01:00
parent eb01c07552
commit 8cc33c2b19
+6
View File
@@ -35,6 +35,12 @@ struct OutpostApp: App {
#endif #endif
} }
#if os(macOS) #if os(macOS)
// On macOS's unified toolbar, the native title text renders in the
// same row as a `.navigation`-placed toolbar item with both set to
// the same collection/document name, it visibly duplicated, with the
// system back button sandwiched between the two. `.navigationTitle`
// stays set (for the Window menu / Mission Control), just hidden here.
.windowToolbarStyle(.unifiedCompact(showsTitle: false))
.commands { .commands {
CommandGroup(replacing: .appInfo) { CommandGroup(replacing: .appInfo) {
Button("About Outpost") { Button("About Outpost") {