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

Centered Paging (snap cell to center) #1

Open mbecker opened 8 years ago

mbecker commented 8 years ago

Hi,

thanks for this libarary! Great Work and easy to implement.

Any chance to implement a functionality to snap the cells to center while scrolling/paging?

(You see this functionality for example in the airbnb app or described at http://blog.karmadust.com/centered-paging-with-preview-cells-on-uicollectionview/)

Thanks and best regards.

pitiphong-p commented 7 years ago

The question is "How and where will we gonna do the snapping? At center or the edge? Or do we need an option for that?"

nitrag commented 6 years ago

Me personally, I'd want to snap to the left edge.