Skip to content

Latest commit

 

History

History
87 lines (56 loc) · 2.26 KB

README.md

File metadata and controls

87 lines (56 loc) · 2.26 KB

JKImagePicker

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Swift 3.2

iOS 9

Installation

JKImagePicker is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'JKImagePicker'

Features

  • 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

JKImagePicker Usage

Import JKImagePicker import JKImagePicker then use the following :

let imagePicker = JKImagePickerViewController()
imagePicker = self
self.present(self.imagePicker!, animated: true, completion: nil)

Delegate methods

// 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")
}

TO-DO

  • Swift 4 support
  • Add filters
  • Add Edits (Brightness, Contrast, Saturation...)
  • Make all the components configurable

Author

Jimmy Kumako , https://twitter.com/jamesthakid

License

JKImagePicker is available under the MIT license. See the LICENSE file for more info.

Special Credits

This project is based on Fahid Attique project FAImageCropper - https://github.com/fahidattique55/FAImageCropper