VPCollectionViewLayout
VPCollectionViewLayout copied to clipboard
VPCollectionViewLayout is a helper class for displaying collection view cells in different flow layouts. The UI can be customized in different ways
VPCollectionViewLayout
VPCollectionViewLayout is a helper class for displaying collection view cells in different flow layouts. The UI can be customized in different ways. See Usage
for more info.
Requirements
- iOS 9.0 or later.
- ARC memory management.
Usage
Drag and drop the folder VPCollectionViewLayout
into your project. Add a collection view wherever needed in your xib or storyboard and change the flow layout class to custom and enter the name of the class as VPCollectionViewLayout
.
The currently supported layouts are - vertical, horizontal, centralizedVertical, centralizedHorizontal and circular (more detail explanation mentioned within the class).
Contributing
Type - 1
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Type - 2
- Create an issue/explain the needed flowlayout
- I'll try to add the necessry feature
- You can download the update code :P
History
Version 0.2.1
Added sample images and set default layout to be vertical
Version 0.2.0
Added support for circular flow layout
Version 0.1.0
Added support for 4 types of flow layout display as well as selection animation handled with animation.
License
MIT License
Copyright (c) 2017 Varun P M
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.