UniversalPicker 2.1.0

UniversalPicker 2.1.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Jan 2017
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by Gabriele Petronella.



UniversalPicker

Let the user pick a photo, a video or a file, in the simplest way possible.

No more fiddling with the clumsy delegate-based UIImagePickerController API

Example

To run the example project, run pod try UniversalPicker

Usage

Example: pick a photo

UniversalPicker.pickPhoto(inViewController: self) { photo in
  if let photo = photo {
    // do something wonderful with this photo
  } else {
    // the user cancelled
  }
}

This will automatically let the user choose a source (library or camera) and then present the default image picker or the camera.

Simple, as it should be.

Requirements

UniversalPicker has no third party dependencies.

If you want to use the file picker, you will need to add the iCloud Entitlements to your app.

Installation

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

pod "UniversalPicker"

Author

Gabriele Petronella, [email protected]

License

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