This is IOS Swift Universal Static Library for Image picking from gallery or camera with some simple customization
CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries like YSimpleImagePicker in your projects.
First, add the following line to your Podfile:
pod 'YSimpleImagePicker'Second, install YSimpleImagePicker into your project:
pod installImport Library into View Controller
import YSimpleImagePickerThen get shared instance as
let shared = YSimpleImagePicker.sharedshared.selectImage(refController: self, onSelection: { (img) in
self.imageview.image = img
}) { (error) in
print(error)
}YSimpleImagePicker is distributed under the terms and conditions of the [MIT license]