zepojo / UPCarouselFlowLayout

A fancy carousel flow layout for UICollectionView on iOS.
MIT License
1.66k stars 236 forks source link

Reset item position when collection view data is reloaded #25

Open alexman03 opened 6 years ago

alexman03 commented 6 years ago

As my issue title suggests, I'm curious how I can reset the position of the carousel when the .reloadData() function is called on the associated UICollectionView. I'd like it to reset to the first item in the collection.

Thanks!

ritteraf commented 6 years ago

+1 on this. Any thoughts?