Pull request Correctly calculate `CollectionFlowLayoutEnvironment.contentSize` on composed-swift/Composed
Here's a small PR for a bug that I think has just gone unnoticed because we've never used the sectionInset
property of the UICollectionViewFlowLayout
, and we've never used the contentInset
property of UICollectionView
.
The issues looks to be that the layout's sectionInset
property is applied on a per-section basis, but the collection view's contentInset
was not being honoured.
It was also calculated using insetBy(dx:dy:)
, which will modify the width by -dx * 2
, which would double the expected insets.