A powerful iOS image editor framework. Supports drawing, cropping, mosaic, text stickers, image stickers, filters, and image adjustments.
Forked from longitachi/ZLImageEditor with customizations for use via rn-photo-editor.
- Draw (custom line color, width, style)
- Crop (free-style and custom ratios)
- Image sticker (custom sticker container view)
- Text sticker (custom text color and font)
- Mosaic
- Filter (custom filters)
- Adjust (Brightness, Contrast, Saturation)
- Undo / Redo for all operations
| Version | iOS |
|---|---|
| v >= 2.0.0 | iOS 10.0+ |
| v < 2.0.0 | iOS 9.0+ |
- Swift 5.x
- Xcode 12.x+
pod 'ZLImageEditor', :git => 'https://github.com/virtualspirit/ZLImageEditor.git', :tag => '3.0.6'Then run:
pod install- File > Add Package Dependencies
- Enter:
https://github.com/virtualspirit/ZLImageEditor.git - Set version rule to Up to Next Major starting from
3.0.6
ZLImageEditorConfiguration.default()
.editImageTools([.draw, .clip, .imageSticker, .textSticker, .mosaic, .filter, .adjust])
.adjustTools([.brightness, .contrast, .saturation])
ZLEditImageViewController.showEditImageVC(
parentVC: self,
image: image,
editModel: editModel
) { [weak self] resImage, editModel in
// resImage: edited UIImage
// editModel: ZLEditImageModel for re-editing
}🇨🇳 Chinese (Simplified/Traditional), 🇺🇸 English, 🇯🇵 Japanese, 🇫🇷 French, 🇩🇪 German, 🇺🇦 Ukrainian, 🇷🇺 Russian, 🇻🇳 Vietnamese, 🇰🇷 Korean, 🇲🇾 Malay, 🇮🇹 Italian, 🇮🇩 Indonesian, 🇪🇸 Spanish, 🇵🇹 Portuguese, 🇹🇷 Turkish, 🇸🇦 Arabic, 🇳🇱 Dutch.
MIT