Reputation: 5216
I have a UICollectionView which uses a UICollectionViewFlowLayout to layout its children. These children will have varying heights, so I need to adjust the UICollectionView such that the elements are bottom-aligned and not center-aligned
I tried using
func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, insetForSectionAt section: Int) -> UIEdgeInsets
But it is for an entire section I need it only for its elements Any Idea how to resolve this?
Upvotes: 0
Views: 42