MaherKSantina / MSPeekCollectionViewDelegateImplementation

A custom paging behavior that peeks the previous and next items in a collection view
https://medium.com/@maher.santina90/how-to-create-cells-that-peek-on-the-sides-like-ios-11-app-store-ef4bb54c0c7d
MIT License
356 stars 32 forks source link

Handle minimum & maximum items to scroll for default newTargetOffset #72

Closed alexookah closed 3 years ago

alexookah commented 3 years ago

Scrolling slowly to the next Item does not take into account the minimum and maximum items to scroll. This PL fixes this issue.

alexookah commented 3 years ago

@MaherKSantina Adding a video that demonstrates the problem: the setup is

minimumItemsToScroll: 3, maximumItemsToScroll: 3, numberOfItemsToShow: 3,

https://user-images.githubusercontent.com/9624843/111997752-055d0d80-8b24-11eb-960b-f76b41c8c837.mov

alexookah commented 3 years ago

Thanks @MaherKSantina :)