Search code examples
iphoneiosuiscrollviewrubiks-cube

Vertical and horizontal scoll at a time in gridview with infinite scrolling IOS


How can one enable horizontal and vertical scrolling at same time in a grid view?

If I have a 4x4 grid of thumbnail images, I want to implement swiping in both directions, left/right and top/bottom. Currently I am done with left and right swipe, but if I select the second cell and swipe towards the top, the 2nd row should be scrolled like a Rubik's cube.

Please share if any one have any idea.


Solution

  • It's been quite a while since your question but as I've been struggling with the same thing I'm gonna answer it for future reference...

    Sadly I could not find a good solution anywhere so after a lot of hours of experimenting I came up with this: https://github.com/AlvinNutbeij/DWGridController

    It's still a work in progress but very usable for your purpose I'd say!