Mimicking the behaviour of the Passbooks apps in iOS using a custom UICollectionViewLayout