A very simple solution to implement UIImagePickerController() in your application.
Swift 4.2 and above
ImagePickerEasy is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'ImagePickerEasy'
import ImagePickerEasy
// A simple and easy method to pick images from your camera and gallery
ImagePickerEasy.shared.present(from: sender as! UIView, vc: self) { image in
if image != nil{
self.mImageView.image = image
}
}
wajeehulhassan, wajeeh661@gmail.com
ImagePickerEasy is available under the MIT license. See the LICENSE file for more info.