Channels search, add SDWebImage framework

This commit is contained in:
Arkadiusz Fal
2021-10-22 01:29:10 +02:00
parent bb8a8dee05
commit 0e54cbcad0
35 changed files with 859 additions and 431 deletions

View File

@@ -13,6 +13,10 @@ struct TrendingView: View {
@EnvironmentObject<AccountsModel> private var accounts
var popular: [ContentItem] {
ContentItem.array(of: store.collection)
}
init(_ videos: [Video] = [Video]()) {
self.videos = videos
}
@@ -32,12 +36,12 @@ struct TrendingView: View {
VStack(alignment: .center, spacing: 0) {
#if os(tvOS)
toolbar
VideosCellsHorizontal(videos: store.collection)
HorizontalCells(items: popular)
.padding(.top, 40)
Spacer()
#else
VideosCellsVertical(videos: store.collection)
VerticalCells(items: popular)
#endif
}
}