mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-09-03 16:33:48 +00:00
AI Code Review
This commit is contained in:
parent
eecdab8a06
commit
72e308ef3f
1 changed files with 7 additions and 9 deletions
|
@ -29,16 +29,14 @@ struct AppView: View {
|
||||||
@State var selectedTabScrollToTop: Int = -1
|
@State var selectedTabScrollToTop: Int = -1
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
#if os(visionOS)
|
switch UIDevice.current.userInterfaceIdiom {
|
||||||
|
case .vision:
|
||||||
tabBarView
|
tabBarView
|
||||||
#else
|
case .pad, .mac:
|
||||||
if UIDevice.current.userInterfaceIdiom == .pad || UIDevice.current.userInterfaceIdiom == .mac
|
sidebarView
|
||||||
{
|
default:
|
||||||
sidebarView
|
tabBarView
|
||||||
} else {
|
}
|
||||||
tabBarView
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var availableTabs: [AppTab] {
|
var availableTabs: [AppTab] {
|
||||||
|
|
Loading…
Reference in a new issue