Skip to content
This repository has been archived by the owner on Jun 25, 2021. It is now read-only.

Not Working with CollectionView #5

Open
jobnte opened this issue May 7, 2018 · 2 comments
Open

Not Working with CollectionView #5

jobnte opened this issue May 7, 2018 · 2 comments

Comments

@jobnte
Copy link

jobnte commented May 7, 2018

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
Copy link
Author

jobnte commented May 7, 2018

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.

@felipericieri
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants