BSGridCollectionViewLayout is a simple UICollectionViewLayout. It simply displays the items in a grid. It doesn't have a concept of sections. So even if the items are in different data source / sections. They will be displayed as being in one continuous grid without any section breaks. I highly doubt that anyone besides me will use this, but I'm using it in BSImagePicker.
There are 3 properties for you to tweak:
- itemsPerRow - Number of items per row
- itemSpacing - Spacing between items (vertical and horizontal)
- itemHeightRatio - The item height ratio relative to it's width
To run the example project, clone the repo, and run
pod install from the Example directory first.
BSGridCollectionViewLayout is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "BSGridCollectionViewLayout", "~> 1.1.0"
Joakim Gyllstrom, [email protected]
BSGridCollectionViewLayout is available under the MIT license. See the LICENSE file for more info.