Skip to content

varunpm1/VPCollectionViewLayout

Repository files navigation

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

  1. iOS 9.0 or later.
  2. 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).

Screenshot

Screenshot

Screenshot

Screenshot

Screenshot

Screenshot

Contributing

Type - 1

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Type - 2

  1. Create an issue/explain the needed flowlayout
  2. I'll try to add the necessry feature
  3. 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.

About

VPCollectionViewLayout is a helper class for displaying collection view cells in different flow layouts. The UI can be customized in different ways

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages