ScrollingStackContainer icon indicating copy to clipboard operation
ScrollingStackContainer copied to clipboard

Not Working with CollectionView

Open jobnte opened this issue 7 years ago • 2 comments

Hello, I just found that following the example in this repo but changing from tableView to collectionView don't work.

It doesn't scroll vertically.

jobnte avatar May 07 '18 21:05 jobnte

For tableView we have to set Row Height & Estimate in Storyboard view (Attribute Inspector) otherwise the size of the tableview will be decreased and not going to show all rows.

jobnte avatar May 07 '18 22:05 jobnte

The problem when working with UICollectionView - in my case - was when its contentSize was set. The library works perfectly fine once you have a greater-than-zero content size height. Try calling self.view.layoutIfNeeded() when your UICollectionView is filled (aka after data comes in). It will force the container to relayout its subviews.

felipericieri avatar Aug 17 '18 14:08 felipericieri