I want my CollectionView to still be able to scroll a bit up and down when there’s only a few cells (to get that bounce effect). In a previous question it was suggested that using
self.collectionview?.alwaysBounceVerticle = true
You can configure it using Storyboard.
Just select your collection view and in attribute inspector check * Bounces* and Bounce Vertically.