An open API service indexing awesome lists of open source software.

https://github.com/shaneqi/swipeselectingcollectionview

A collection view subclass that enables swipe to select multiple cells just like in Photos app.
https://github.com/shaneqi/swipeselectingcollectionview

collectionview ios swift

Last synced: 8 months ago
JSON representation

A collection view subclass that enables swipe to select multiple cells just like in Photos app.

Awesome Lists containing this project

README

          

# SwipeSelectingCollectionView
> A collection view subclass that enables swipe to select multiple cells just like in Photos app.

[![Swift 4+](https://img.shields.io/badge/Swift-4+-orange.svg)](https://swift.org/)
[![iOS 8.0](https://img.shields.io/badge/iOS-8.0+-green.svg)](https://www.apple.com/)

![demo](./Assets/demo.gif)

## Requirements

- Swift 4.0+
- iOS 8.0+
- Xcode 7.3+

## Installation

#### CocoaPods
You can use [CocoaPods](http://cocoapods.org/) to install `SwipeSelectingCollectionView` by adding it to your `Podfile`:

```ruby
platform :ios, '8.0'
use_frameworks!
pod 'SwipeSelectingCollectionView'
```

To get the full benefits import `SwipeSelectingCollectionView` wherever you import UIKit

``` swift
import UIKit
import SwipeSelectingCollectionView
```

#### Manually
1. Download and drop ```SwipeSelectingCollectionView.xcodeproj``` in your project.
2. Congratulations!

## Usage example

#### Programmatically

```swift
import SwipeSelectingCollectionView

let collectionView = CollectionView(frame: .zero, collectionViewLayout: UICollectionViewFlowLayout())
```

#### Interface Builder

![](./Assets/usage-IB.png)

## Contribute

We would love you for the contribution to **SwipeSelectingCollectionView**, check the ``LICENSE`` file for more info.

## Meta

Shane Qi – [@shadowqi](https://twitter.com/shadowqi) – qizengtai@gmail.com

Distributed under the Apache License 2.0. See ``LICENSE`` for more information.

[https://github.com/shaneqi/SwipeSelectingCollectionView](https://github.com/shaneqi/SwipeSelectingCollectionView)