Mimicking the behavior of the Passbooks apps in iOS using a custom UICollectionViewLayout.