mirror of
https://github.com/yattee/yattee.git
synced 2025-08-05 02:04:07 +00:00
Channel view and other small improvements
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user