Giter VIP home page Giter VIP logo

vpcollectionviewlayout's Introduction

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.

vpcollectionviewlayout's People

Contributors

varun-pm avatar varunpm1 avatar

Stargazers

 avatar Elsayed Hussein avatar Devi Pd. Ghimire  (Dip Kasyap) avatar Thanh avatar Neo Nguyen avatar  avatar Hardik Amal avatar Narcis avatar Serhat Sezer avatar samuele coppede avatar Sameh Salama avatar Weihan avatar  avatar Richie avatar Carabineiro avatar Pierre Rougeot avatar Marvin Nazari avatar

Watchers

Carabineiro avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.