Note: CardsLayout is a layout originally created by filletofish. I have just made small modifications in my own library to allow this layout to work in more advanced applications with segueing.
CardsLayout is a lightweight Collection Layout.
You can use CocoaPods to install CardsLayout
by adding it to your Podfile
:
platform :ios, '9.0'
use_frameworks!
pod 'CardsLayout'
import CardsLayout
- Add
CardsCollectionViewLayout
file to your project - Configure
collectionView
:
collectionView.collectionViewLayout = CardsCollectionViewLayout()
collectionView.isPagingEnabled = true
collectionView.showsHorizontalScrollIndicator = false