SquareFlowLayout
Makes your UICollectionView to looks like Instagram explore has never been so easy before.
SquareFlowLayout provide dynamic layout generation by defining which IndexPath should be expanded.
Installation
CocoaPods
Coming soon!
Manually
- Download and drop
Classesfolder into your project. - Congratulations!
Usage
- Set
SquareFlowLayoutto your UICollectionView and set itflowDelegate
let flowLayout = SquareFlowLayout()
flowLayout.flowDelegate = self
self.collectionView.collectionViewLayout = flowLayout
- Make your class conform to
SquareFlowLayoutDelegateand useshouldExpandItem(at: ) -> Boolto decide which cell to expand - Design your cells
- Populate your collectionView with data
Contributing to this project
If you like this tool, show your support by tell me how do u use it.
License
This code is distributed under the terms and conditions of the MIT license.
