Fake an actual title bar on macOS Tahoe. (#4971)

This commit is contained in:
Doug
2026-01-19 18:56:59 +00:00
committed by GitHub
parent e4d961225a
commit 99805c0932

View File

@@ -33,6 +33,12 @@ struct Application: App {
WindowGroup {
appCoordinator.toPresentable()
.statusBarHidden(shouldHideStatusBar)
.overlay(alignment: .top) {
if #available(iOS 26, *), ProcessInfo.processInfo.isiOSAppOnMac {
// Fake an old-school titlebar to reduce the "floaty-ness" of everything with liquid glass.
Divider().ignoresSafeArea()
}
}
.environment(\.openURL, OpenURLAction { url in
if appCoordinator.handleDeepLink(url, isExternalURL: false) {
return .handled