pitiphong-p / CollectionViewShelfLayout

A UICollectionViewLayout subclass displays its items as rows of items similar to the App Store Feature tab without a nested UITableView/UICollectionView hack.
MIT License
376 stars 30 forks source link

cells not appearing #8

Closed kchen97 closed 5 years ago

kchen97 commented 6 years ago

In an app I am building I am dynamically creating sections based on data I get back from my database. If I scroll all the way to the end, and then a section is dynamically created above it with different # of items that new section retains the scroll position of the section thats scrolled all the way to the end.

Is there a way to fix this so that all sections scroll to the first item when the section is created?

pitiphong-p commented 6 years ago

Do you have a sample code or sample project that can reproduce this issue?