0

I have a UICollectionView with multiple sections.

I would like to add bottom inset to the entire collectionView.

All the Q&As suggest to use the following function:

func collectionView(_ collectionView: UICollectionView, 
                  layout collectionViewLayout: UICollectionViewLayout, 
       insetForSectionAt section: Int) -> UIEdgeInsets

But this adds insets to all the sections. Where I need space only it the bottom of the collectionView

Luda
  • 7,282
  • 12
  • 79
  • 139

1 Answers1

2

You can try

collectionView.contentInset = UIEdgeInsets(top: 0, left: 0, bottom:<#someValue#>, right: 0)
Shehata Gamal
  • 98,760
  • 8
  • 65
  • 87