LXReorderableCollectionViewFlowLayout icon indicating copy to clipboard operation
LXReorderableCollectionViewFlowLayout copied to clipboard

Springboard-like page scrolling

Open hpique opened this issue 12 years ago • 7 comments

Added Springboard-like page scrolling for when the collection view has paging enabled and updated the example. We needed this for collection views that can only scroll to the page offset, and also it feels more "natural".

This feature required an architectural change: currentView is now a sibling of the collection view instead of its child. This avoids overcomplicated calculations to move currentView with the page change animation. Also, this should work better when the collection view is smaller than its parent.

All the page calculations were added to a separate UICollectionViewFlowLayout category, as they are independent of LXReorderableCollectionViewFlowLayout's logic.

Totally understand if you don't want this change in master.

hpique avatar Apr 01 '13 16:04 hpique

Wow thanks for this pull request. It looks cool! I should start spending some time building more examples to show case. I'll try review this and merge this in soon though.

I had this experimental drag and drop branch I used in a project. Although I haven't figure out how to merge it into the master, maybe with this I can try to replicate some bit of spring board's behavior! Should be cool. Although one of the reason I couldn't merge in the branch is that it is causing more problems to an already problematic animation when shifting cells.

lxcid avatar Apr 01 '13 17:04 lxcid

Let me know if there's anything I can do to help.

Yes, more examples would be nice to simplify testing. And maybe a unit test project.

hpique avatar Apr 01 '13 18:04 hpique

Hey, do you find some time to merge this?

mRs- avatar May 16 '13 15:05 mRs-

Hey, This is a great addition! I would really like to use this flow. Can you please share a project in which it's implemented? Or maybe explain how to use it? Thanks, Roi

roiholtzman avatar May 28 '14 10:05 roiholtzman

@roiholtzman I'm not actively supporting this fork. Feel free to take over!

hpique avatar May 28 '14 13:05 hpique

Does the latest version suppose to handle scrolling that looks like the iOS springboard?

roiholtzman avatar May 28 '14 15:05 roiholtzman

That works like, not looks like.

hpique avatar May 28 '14 15:05 hpique