Nolan Ranolin Nolan Ranolin -4 years ago 92
Swift Question

Make uiCollectionView scrollable when not full

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

would work (this was marked as the correct answer) but this doesn’t work anymore.

I’m using swift 3

Answer Source

You can configure it using Storyboard. Just select your collection view and in attribute inspector check * Bounces* and Bounce Vertically.

enter image description here

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download