To run the example project, clone the repo, and run pod install
from the Example directory first.
Swift 3.2
iOS 9
JKImagePicker is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'JKImagePicker'
- Load all photos from Photo library
- Select which library photos to load
- Zoom-in and zoom-out with Gestures
- Zoom-in and zoom-out button like instagram
- Grid view while editing/touch begins
- Crop Image while maintaining aspect ratio of image
- Crop Image With original image resolution
- Take square-sized image with camera
Import JKImagePicker import JKImagePicker
then use the following :
let imagePicker = JKImagePickerViewController()
imagePicker = self
self.present(self.imagePicker!, animated: true, completion: nil)
// Return the image which is selected from library or taken with the camera.
func didFinishPickingPhoto(image: UIImage) {
print("image picked")
}
// Called after click on cancel button.
func didCancelPickingPhoto() {
print("Cancel button clicked")
}
- Swift 4 support
- Add filters
- Add Edits (Brightness, Contrast, Saturation...)
- Make all the components configurable
Jimmy Kumako , https://twitter.com/jamesthakid
JKImagePicker is available under the MIT license. See the LICENSE file for more info.
This project is based on Fahid Attique project FAImageCropper - https://github.com/fahidattique55/FAImageCropper