TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Jan 2017 |
SwiftSwift Version | 3.0 |
SPMSupports SPM | ✗ |
Maintained by Gabriele Petronella.
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
To run the example project, run pod try UniversalPicker
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.
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.
UniversalPicker is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "UniversalPicker"
Gabriele Petronella, [email protected]
UniversalPicker is available under the MIT license. See the LICENSE file for more info.