I would like to have a LazyVGrid of rows with same heights expanding/shrinking to fill the available parent height
Is it possible?
let columns = Array(repeating: GridItem(.flexible(minimum: 50, maximum: 100)), count: 3)
LazyVGrid(columns: columns, alignment: .leading, spacing: 10) {
ForEach(objects, id: \.self.id) { object in
MyView().frame(minHeight: 0, maxHeight: .infinity)
}
}
The above code does perfectly spaces the frames in width, but the rows don't expand and shrink, they just get tight to the height of the content.