How to create a grid layout with equal row heights using UICollectionViewCompositionalLayout
- 阅读更多 关于 How to create a grid layout with equal row heights using UICollectionViewCompositionalLayout
问题 I've successfully been able to create a grid layout using UICollectionViewCompositionalLayout . However, I am unable to find a clever way of ensuring the UICollectionViewCell in each row in the grid are of the same height when their heights are dynamic. i.e. I want the cell to stretch to fill the available space height-wise in the row. Desired layout: Grid (3 x N) Variable height cells Each cell has the same height in a given row. (uses the max cell height in a row) Small divider line at the