I have a UICollectionView in a container View. It is sized in such a way that I see only one cell at a time. I have disabled vertical scrolling so only horizontal scrolling takes place.

Everything works just peachy where I scroll horizontally across cells. The disadvantage of this scrolling is I can scroll and get to a position where I see half portion of two cells with a gap in between.

What I want to achieve is to show only one cell at a time and never show two half cells. So the scrolling should take me to the next cell one at a time.

Hope this makes sense. 

Please let me know if anyone has tried or can help me to achieve the same. Thanks.