BaleMediaPicker 0.1.8

BaleMediaPicker 0.1.8

Maintained by Masoud Rajabpour.



  • By
  • masoudrajabpour and mahdiTarighat

BaleMediaPicker

Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

The latest version of BaleMediaPicker require: Swift 4+ iOS 9+

Installation

BaleMediaPicker is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'BaleMediaPicker'

How to use

import BaleMediaPicker
import Photos

//call mediaPicker
let pickerView = BaleMediaPicker(self) //self: your viewController
pickerView.show()
//get selected assets by implementing BaleMediaPickerDelegate
extension ViewController :BaleMediaPickerDelegate{
    func baleMediaPicker(_ assets: [PHAsset]) {
        print(assets)
    }
}

Don't forget to set "Privacy - Photo Library Usage Description" permission to your application info.plist

Authors

[email protected], [email protected]

License

BaleMediaPicker is available under the GPL-3.0 license. See the LICENSE file for more info.