Here's the simplest code I tried that acts wrong:
the grid has 10 red rectangles and 1 black rectangles
the grid has 6 red rectangles and 5 black rectangles
LazyVGrid(columns: Array(repeating: .init(.flexible(), alignment: .bottom), count: 7), spacing: 12) {
ForEach(0..<5, id: \.self) { _ in
Rectangle()
.fill(.black)
}
ForEach(0..<10, id: \.self) { _ in
Rectangle()
.fill(.red)
}
}