fix macOS window

This commit is contained in:
Thomas Ricouard 2024-09-11 11:00:34 +02:00
parent 896c031ab0
commit 9d5d341764

View file

@ -110,7 +110,14 @@ struct AppView: View {
HStack(spacing: 0) { HStack(spacing: 0) {
if #available(iOS 18.0, *) { if #available(iOS 18.0, *) {
baseTabView baseTabView
#if targetEnvironment(macCatalyst)
.tabViewStyle(.sidebarAdaptable)
.introspect(.tabView, on: .iOS(.v17, .v18)) { (tabview: UITabBarController) in
tabview.sidebar.isHidden = true
}
#else
.tabViewStyle(.tabBarOnly) .tabViewStyle(.tabBarOnly)
#endif
} else { } else {
baseTabView baseTabView
} }