mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Fake an actual title bar on macOS Tahoe. (#4971)
This commit is contained in:
@@ -33,6 +33,12 @@ struct Application: App {
|
|||||||
WindowGroup {
|
WindowGroup {
|
||||||
appCoordinator.toPresentable()
|
appCoordinator.toPresentable()
|
||||||
.statusBarHidden(shouldHideStatusBar)
|
.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
|
.environment(\.openURL, OpenURLAction { url in
|
||||||
if appCoordinator.handleDeepLink(url, isExternalURL: false) {
|
if appCoordinator.handleDeepLink(url, isExternalURL: false) {
|
||||||
return .handled
|
return .handled
|
||||||
|
|||||||
Reference in New Issue
Block a user