From 9d5d34176418023dfdd14bb757c6b61257b223c6 Mon Sep 17 00:00:00 2001 From: Thomas Ricouard Date: Wed, 11 Sep 2024 11:00:34 +0200 Subject: [PATCH] fix macOS window --- IceCubesApp/App/Main/AppView.swift | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/IceCubesApp/App/Main/AppView.swift b/IceCubesApp/App/Main/AppView.swift index 45d814b5..28c526c9 100644 --- a/IceCubesApp/App/Main/AppView.swift +++ b/IceCubesApp/App/Main/AppView.swift @@ -110,7 +110,14 @@ struct AppView: View { HStack(spacing: 0) { if #available(iOS 18.0, *) { baseTabView + #if targetEnvironment(macCatalyst) + .tabViewStyle(.sidebarAdaptable) + .introspect(.tabView, on: .iOS(.v17, .v18)) { (tabview: UITabBarController) in + tabview.sidebar.isHidden = true + } + #else .tabViewStyle(.tabBarOnly) + #endif } else { baseTabView }