Horizontal Scrolling – Stack of cards – using Swift 2

So looks like cards like layout and horizontal scrolling is really getting some tractions and many apps have started using it. Offcourse there are several ways to do it but i found a nifty easy trick to build this using UICollectionViewController with least amount of code.

Here is how it looks like.



Fancy right 😉 But no clue about why i came up with “Swappy Dagger”


Anyways the whole magic is in this secret sauce:

Without that you won’t get the feel.

Anyways to get the code you can download it from my Git Repo.  If this is useful spread the love by sharing.