A photo cropping tool which mimics Photo.app written by Swift
DGCropImage
A photo cropping tool which mimics Photo.app written by Swift.
This library supports localized string for english and korean. If there is other languages whenever just let me know or feel free to open a new pull request.
Requirements
- iOS 12.0+
- Swift 5.5+
- Xcode 10.0+
Installation
SPM
File > Add Packages > https://github.com/donggyushin/DGCropImage
CocoaPod
pod 'DGCropImage', :git => 'https://github.com/donggyushin/DGCropImage'
Usage
let crop = DGCropImage.crop(image: image)
self.present(crop, animated: true, completion: nil)
// Don't forget
crop.delegate = self