From 8cc33c2b191679907fed096072f076e153ef4af2 Mon Sep 17 00:00:00 2001 From: psavarmattas Date: Fri, 14 Aug 2026 01:03:39 +0100 Subject: [PATCH] fix(app): hide native title bar text duplicating the toolbar pill MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit .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. --- Outpost/OutpostApp.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Outpost/OutpostApp.swift b/Outpost/OutpostApp.swift index 59cb668..38fd726 100644 --- a/Outpost/OutpostApp.swift +++ b/Outpost/OutpostApp.swift @@ -35,6 +35,12 @@ struct OutpostApp: App { #endif } #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 { CommandGroup(replacing: .appInfo) { Button("About Outpost") {