mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-25 09:41:02 +00:00
fix macOS window
This commit is contained in:
parent
896c031ab0
commit
9d5d341764
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue