mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 21:43:41 +00:00
Fix visible tvOS sections
This commit is contained in:
parent
78ff495927
commit
66c9fa773c
@ -17,28 +17,30 @@ struct TVNavigationView: View {
|
|||||||
.tabItem { Text("Home") }
|
.tabItem { Text("Home") }
|
||||||
.tag(TabSelection.home)
|
.tag(TabSelection.home)
|
||||||
|
|
||||||
if visibleSections.contains(.subscriptions), accounts.app.supportsSubscriptions, accounts.api.signedIn {
|
if !accounts.isEmpty {
|
||||||
LazyView(SubscriptionsView())
|
if visibleSections.contains(.subscriptions), accounts.app.supportsSubscriptions, accounts.api.signedIn {
|
||||||
.tabItem { Text("Subscriptions") }
|
LazyView(SubscriptionsView())
|
||||||
.tag(TabSelection.subscriptions)
|
.tabItem { Text("Subscriptions") }
|
||||||
}
|
.tag(TabSelection.subscriptions)
|
||||||
|
}
|
||||||
|
|
||||||
if visibleSections.contains(.popular), accounts.app.supportsPopular {
|
if visibleSections.contains(.popular), accounts.app.supportsPopular {
|
||||||
LazyView(PopularView())
|
LazyView(PopularView())
|
||||||
.tabItem { Text("Popular") }
|
.tabItem { Text("Popular") }
|
||||||
.tag(TabSelection.popular)
|
.tag(TabSelection.popular)
|
||||||
}
|
}
|
||||||
|
|
||||||
if visibleSections.contains(.trending) {
|
if visibleSections.contains(.trending) {
|
||||||
LazyView(TrendingView())
|
LazyView(TrendingView())
|
||||||
.tabItem { Text("Trending") }
|
.tabItem { Text("Trending") }
|
||||||
.tag(TabSelection.trending)
|
.tag(TabSelection.trending)
|
||||||
}
|
}
|
||||||
|
|
||||||
if visibleSections.contains(.playlists), accounts.app.supportsUserPlaylists, accounts.signedIn {
|
if visibleSections.contains(.playlists), accounts.app.supportsUserPlaylists, accounts.signedIn {
|
||||||
LazyView(PlaylistsView())
|
LazyView(PlaylistsView())
|
||||||
.tabItem { Text("Playlists") }
|
.tabItem { Text("Playlists") }
|
||||||
.tag(TabSelection.playlists)
|
.tag(TabSelection.playlists)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
LazyView(NowPlayingView())
|
LazyView(NowPlayingView())
|
||||||
|
Loading…
Reference in New Issue
Block a user