Fix placeholders on tvOS

This commit is contained in:
Arkadiusz Fal 2022-03-27 20:31:56 +02:00
parent 1c520831d1
commit 8b4838dca5

View File

@ -45,7 +45,7 @@ struct VerticalCells: View {
var columns: [GridItem] { var columns: [GridItem] {
#if os(tvOS) #if os(tvOS)
items.count < 3 ? Array(repeating: GridItem(.fixed(500)), count: [items.count, 1].max()!) : adaptiveItem contentItems.count < 3 ? Array(repeating: GridItem(.fixed(500)), count: [contentItems.count, 1].max()!) : adaptiveItem
#else #else
adaptiveItem adaptiveItem
#endif #endif