SwiftSimplePhotoPicker is a simple image picker, allowing the user to pick a single image from either the camera or photo library.
SwiftSimplePhotoPicker.shared.showPicker(in: self) { (photo) in
// Handle the photo picked by the user
}Just add the file SwiftSimplePhotoPicker.swift to your project manually.
You should also add these values to your app's Info.plist to tell the user why you need to access the Camera and Photo Library.
<key>NSCameraUsageDescription</key>
<string>Camera usage description</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>Photo Library usage description</string>
I'm Marco Braga, I'm on Twitter.
SwiftSimplePhotoPicker is licensed under the MIT License.
