Skip to content

Commit

Permalink
AI Code Review
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimillian committed Oct 30, 2024
1 parent eecdab8 commit 72e308e
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions IceCubesApp/App/Main/AppView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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] {
Expand Down

0 comments on commit 72e308e

Please sign in to comment.