Channel view and other small improvements

This commit is contained in:
Arkadiusz Fal
2022-12-11 17:06:02 +01:00
parent 006423682b
commit 899e66b204
7 changed files with 96 additions and 73 deletions

View File

@@ -40,6 +40,7 @@ struct FavoriteItemView: View {
#endif
HorizontalCells(items: store.contentItems)
.environment(\.inChannelView, inChannelView)
}
.contentShape(Rectangle())
.onAppear {
@@ -62,6 +63,15 @@ struct FavoriteItemView: View {
}
}
var inChannelView: Bool {
switch item.section {
case .channel:
return true
default:
return false
}
}
var itemControl: some View {
VStack {
#if os(tvOS)