mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-02-08 15:38:41 +01:00
AI Code Review
This commit is contained in:
parent
eecdab8a06
commit
72e308ef3f
@ -29,16 +29,14 @@ struct AppView: View {
|
||||
@State var selectedTabScrollToTop: Int = -1
|
||||
|
||||
var body: some View {
|
||||
#if os(visionOS)
|
||||
switch UIDevice.current.userInterfaceIdiom {
|
||||
case .vision:
|
||||
tabBarView
|
||||
#else
|
||||
if UIDevice.current.userInterfaceIdiom == .pad || UIDevice.current.userInterfaceIdiom == .mac
|
||||
{
|
||||
sidebarView
|
||||
} else {
|
||||
tabBarView
|
||||
}
|
||||
#endif
|
||||
case .pad, .mac:
|
||||
sidebarView
|
||||
default:
|
||||
tabBarView
|
||||
}
|
||||
}
|
||||
|
||||
var availableTabs: [AppTab] {
|
||||
|
Loading…
x
Reference in New Issue
Block a user