'UICollectionView paging via cell width

I want to make paging in collection view not by collection view width, but by collection view cell width.

As shown in image. After paging in collection view, I want to allign current cell at the left side of screen and keep left side of next cell visible (as shown in image). As I know i can use ScrollViewWillEndDragging, but I can't set it properly.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source