Add Sponsor Block and settings

This commit is contained in:
Arkadiusz Fal
2021-10-23 18:49:45 +02:00
parent e64a520d5e
commit 8e0af22b94
21 changed files with 362 additions and 114 deletions

View File

@@ -31,7 +31,7 @@ struct HorizontalCells: View {
.padding(.vertical, 10)
#endif
}
.id(UUID())
.id(items.map(\.id).joined())
#if os(tvOS)
.frame(height: 560)
#else

View File

@@ -17,7 +17,7 @@ struct VerticalCells: View {
}
.padding()
}
.id(UUID())
.id(items.map(\.id).joined())
.edgesIgnoringSafeArea(.horizontal)
#if os(macOS)
.background()
@@ -56,7 +56,7 @@ struct VerticalCells: View {
}
}
struct VideoCellsVertical_Previews: PreviewProvider {
struct VeticalCells_Previews: PreviewProvider {
static var previews: some View {
VerticalCells(items: ContentItem.array(of: Video.allFixtures))
.injectFixtureEnvironmentObjects()