mirror of
https://bitbucket.org/vendoo/vendoo_v1.0.git
synced 2025-12-25 11:47:40 +00:00
38 lines
1.7 KiB
Markdown
38 lines
1.7 KiB
Markdown
# BSGridCollectionViewLayout
|
|
|
|
[](https://travis-ci.org/mikaoj/BSGridCollectionViewLayout)
|
|
[](http://cocoapods.org/pods/BSGridCollectionViewLayout)
|
|
[](http://cocoapods.org/pods/BSGridCollectionViewLayout)
|
|
[](http://cocoapods.org/pods/BSGridCollectionViewLayout)
|
|
|
|
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](https://github.com/mikaoj/BSImagePicker).
|
|
|
|
## Usage
|
|
|
|
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.
|
|
|
|
## Requirements
|
|
iOS 8
|
|
|
|
## Installation
|
|
|
|
BSGridCollectionViewLayout is available through [CocoaPods](http://cocoapods.org). To install
|
|
it, simply add the following line to your Podfile:
|
|
|
|
```ruby
|
|
pod "BSGridCollectionViewLayout", "~> 1.1.0"
|
|
```
|
|
|
|
## Author
|
|
|
|
Joakim Gyllstrom, joakim@backslashed.se
|
|
|
|
## License
|
|
|
|
BSGridCollectionViewLayout is available under the MIT license. See the LICENSE file for more info.
|