guangshi1982 / SwiftAssetsPickerController

Simple assets picker controller based on iOS 8 Photos framework. Supports iCloud photos and videos. It's written in Swift.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SwiftAssetsPickerController

Version License Platform CocoaPods CocoaPods

Simple assets picker controller based on Photos framework. Supports iCloud photos and videos.

alt tag alt tag

Installation

CocoaPods:

Swift 3.0:
pod 'SwiftAssetsPickerController', '0.3.2'

Swift 4.0:
pod 'SwiftAssetsPickerController', '~> 0.4.0'

Manual:

Copy AssetsPickerController.swift and AssetsPickerGridController.swift to your project.
Also framework uses CheckMarkView, you can found here.

Using

It's really simple. Just see the example:

let assetsPickerController = AssetsPickerController()
assetsPickerController.didSelectAssets = {(assets: Array) -> () in
    println(assets)
}
let navigationController = UINavigationController(rootViewController: rootListAssets)
presentViewController(navigationController, animated: true, completion: nil)

License

SwiftAssetsPickerController is available under the MIT license. See the LICENSE file for more info.

About

Simple assets picker controller based on iOS 8 Photos framework. Supports iCloud photos and videos. It's written in Swift.

License:MIT License


Languages

Language:Swift 95.2%Language:Ruby 4.8%