MSPeekCollectionViewDelegateImplementation Versions Save

A custom paging behavior that peeks the previous and next items in a collection view

3.2.0

3 years ago

Release 3.2.0

#72 Handle minimum & maximum items to scroll for default newTargetOffset #71 Better handling of negative cellSpacing

3.1.1

3 years ago
  • Added ability to listen to index change when the paging finishes
func scrollViewDidEndDecelerating(_ scrollView: UIScrollView) {
    print(behavior.currentIndex)
}

3.1.0

3 years ago
  • Added SPM Support ! 🎉

3.0.4

4 years ago
  • Fixed issue #55 once and for all 💪 (Hopefully..)

3.0.3

4 years ago
  • Fixed issue #50
  • Fixed an issue when scrolling backwards on the first item or forwards on the last item.
  • Added some tests around the content length

3.0.2

4 years ago

Fixed an issue when scrolling backwards and stopping before pulling finger.

Thanks @miklashevsky for helping me track this thing out!

3.0.1

4 years ago

Added scrollToItem function on the behavior. You can now do something like:

behavior.scrollToItem(at: 1, animated: true)

It's recommended to use this function instead of the collection view's scrolling function because we're using a custom collection view layout and the calculation is different

3.0.0

4 years ago

New version is here with less bugs! (Hopefully 🙏 ) The implementation is now using a custom collection view layout which spaces components based on the collection view's frame

The paging behavior is now in it's separate component so that it would be easier to customize and maintain

The new layout should fix most issues with items clipping but please feel free to raise issues if you're still experiencing them

Thank you for your comments and support everyone! ❤️

2.0.0

4 years ago
  • Updated swift to version 5 🎉

1.3.0

4 years ago
  • Added minimumItemsToScroll

minimumItemsToScroll is the number of items that the user will scroll when the scroll distance is greater than the threshold. This is quite useful when you have multiple cells showing at once and you need to do a paging behavior.

For example, let's say I'm showing 2 items at the same time, but I still want to have some kind of paging behavior by scrolling to another 2 items without the need to scroll 1 item at a time. This can be achieved by setting the number of items to show to 2 and minimum items to scroll to 2