Beginning Collection Views · Configuring the Layout Object |

This is a companion discussion topic for the original entry at

How is the section height determined?

Changing the group height to fractional height (.fractionalHeight(0.6)) or any other value such as 0.5, 0.4, 0.3 has an expected behavior.

Steps to reproduce:
Change background of cell to Purple (Or Any) Color

For the line :slight_smile:

let groupSize = NSCollectionLayoutSize(widthDimension: .fractionalWidth(1.0), heightDimension: .fractionalHeight(0.6)

change the value of height dimension to different value, such as 0.5.
Simulator Screen Shot - iPhone SE (2nd generation) - 2020-07-13 at 23.45.46
You can see that after some cells, there is a very thin white spacing. Not sure where is that coming from?Simulator Screen Shot - iPhone SE (2nd generation) - 2020-07-13 at 23.45.56

Will try and replicate this to see what I can find