Git Product home page Git Product logo

secollectionviewflowlayout's Introduction

SECollectionViewFlowLayout

A flow layout for UICollectionView that implements swiping-to-select gestures.

##Functionality ###Panning to select Just touch down and pan and select items in your UICollectionView, much easier than tapping each item

###Auto-select rows If you choose you can enable auto-selecting rows, where if you pan to select an entire row you can continue panning down to select whole rows at a time.

###Pan to deselect Along with panning to select collection view cells, you can choose to enable panning to deselect, where if you start panning from a selected cell, the panning will deselect cells.

###Auto select cells between touches If you choose you can enable auto selection of cells between a first and second touch. Where all cells between the two touches will be selected.

##SEQBImagePickerController The example use case (as seen in the gifs) is using SECollectionViewFlowLayout in combination with QBImagePickerController to select multiple photos from a UIImagePickerController clone. You can use this image picker in your project by adding to your podfile:

pod 'SEQBImagePickerController' 

##SECollectionViewFlowLayout You can also use SECollectionViewFlowLayout in your project and use it with your own UICollectionView.

pod 'SECollectionViewFlowLayout' 

##Usage

When initializing your UICollectionViewController using initWithCollectionViewLayout:, allocate a new SECollectionViewFlowLayout

UICollectionViewController *collectionViewController = 
[[UICollectionViewController alloc] initWithCollectionViewLayout:
[SECollectionViewFlowLayout layoutWithAutoSelectRows:YES panToDeselect:YES autoSelectCellsBetweenTouches:YES]];

##Contributing Use Github issues to track bugs and feature requests

##Contact

Chris Wendel

##Licence

MIT

secollectionviewflowlayout's People

Contributors

cewendel avatar mave99a avatar

Watchers

Song Wang 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.