mirror of
https://github.com/yattee/yattee.git
synced 2025-08-06 18:54:11 +00:00
Remove legacy tvOS list layout
This commit is contained in:
@@ -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)
|
||||
|
@@ -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
|
||||
|
@@ -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()
|
||||
|
@@ -37,7 +37,7 @@ struct SearchView: View {
|
||||
}
|
||||
.edgesIgnoringSafeArea(.horizontal)
|
||||
#else
|
||||
VideosView(videos: state.store.collection)
|
||||
VideosCellsVertical(videos: state.store.collection)
|
||||
#endif
|
||||
|
||||
if noResults {
|
||||
|
@@ -12,7 +12,7 @@ struct SubscriptionsView: View {
|
||||
|
||||
var body: some View {
|
||||
SignInRequiredView(title: "Subscriptions") {
|
||||
VideosView(videos: store.collection)
|
||||
VideosCellsVertical(videos: store.collection)
|
||||
.onAppear {
|
||||
loadResources()
|
||||
}
|
||||
|
Reference in New Issue
Block a user