Remove legacy tvOS list layout

This commit is contained in:
Arkadiusz Fal
2021-09-27 00:28:42 +02:00
parent 994f1f9215
commit 17291b47e0
15 changed files with 27 additions and 160 deletions

View File

@@ -39,7 +39,7 @@ struct ChannelVideosView: View {
.frame(maxWidth: .infinity)
#endif
VideosView(videos: store.item?.videos ?? [])
VideosCellsVertical(videos: store.item?.videos ?? [])
#if !os(iOS)
.prefersDefaultFocus(in: focusNamespace)

View File

@@ -9,7 +9,7 @@ struct PlaylistVideosView: View {
}
var body: some View {
VideosView(videos: playlist.videos)
VideosCellsVertical(videos: playlist.videos)
#if !os(tvOS)
.navigationTitle("\(playlist.title) Playlist")
#endif

View File

@@ -11,7 +11,7 @@ struct PopularView: View {
}
var body: some View {
VideosView(videos: store.collection)
VideosCellsVertical(videos: store.collection)
.onAppear {
resource.addObserver(store)
resource.loadIfNeeded()

View File

@@ -37,7 +37,7 @@ struct SearchView: View {
}
.edgesIgnoringSafeArea(.horizontal)
#else
VideosView(videos: state.store.collection)
VideosCellsVertical(videos: state.store.collection)
#endif
if noResults {

View File

@@ -12,7 +12,7 @@ struct SubscriptionsView: View {
var body: some View {
SignInRequiredView(title: "Subscriptions") {
VideosView(videos: store.collection)
VideosCellsVertical(videos: store.collection)
.onAppear {
loadResources()
}