Latest 2.1.0
Homepage https://github.com/gabro/UniversalPicker
License MIT
Platforms ios 9.0, requires ARC
Frameworks UIKit, Photos, MobileCoreServices
Authors

Version
License
Platform

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.

Latest podspec

{
    "name": "UniversalPicker",
    "version": "2.1.0",
    "summary": "A hassle-free asset picker for photos, videos and files",
    "description": "A hassle-free asset picker for photos, videos and filesnIn case of photo/videos, it automatically prompts for camera/library choicenIn case of document, allows selecting from any file provider",
    "homepage": "https://github.com/gabro/UniversalPicker",
    "license": "MIT",
    "authors": {
        "Gabriele Petronella": "[email protected]"
    },
    "source": {
        "git": "https://github.com/gabro/UniversalPicker.git",
        "tag": "2.1.0"
    },
    "social_media_url": "https://twitter.com/gabro27",
    "platforms": {
        "ios": "9.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "frameworks": [
        "UIKit",
        "Photos",
        "MobileCoreServices"
    ],
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This