README.md
May 22, 2026 ยท View on GitHub
ZLImageEditor is a powerful image editor framework. Supports graffiti, cropping, mosaic, text stickers, picture stickers, filters, adjust(brightness, contrast, saturation).
ZLImageEditor is extracted from ZLPhotoBrowser.
Directory
- Features
- Requirements
- Usage
- Change Log
- Languages
- Installation(Support Cocoapods/Carthage/SPM)
- Support
- Demo Effect
Features
- Draw (Support custom line color).
- Crop (Support custom crop ratios).
- Image sticker (Support custom image sticker container view).
- Text sticker (Support custom text color).
- Mosaic.
- Filter (Support custom filters).
- Adjust (Brightness, Contrast, Saturation).
Requirements
| v >= 2.0.0 | iOS 10.0+ |
|---|---|
| v < 2.0.0 | iOS 9.0+ |
- Swift 5.x
- Xcode 12.x
Usage
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
// your code
}
Change Log
โ 3.0.0
Add:
Improved sticker editing interactions with coordinated gesture handling.
Added dedicated text sticker content rendering for a clearer editing experience.
Improved doodle smoothing and eraser hit detection for smoother drawing and more reliable stroke removal.
โ 2.0.6
Fix:
Fixed the issue where the eraser position was displayed incorrectly when editing pictures.
โ 2.0.5
Add:
Support SwiftUI.
Fix:
Fix retain cycle in ZLEditImageViewController.
Correct eraser misalignment after image cropping.
...
Languages
๐จ๐ณ Chinese (Simplified/Traditional), ๐บ๐ธ English, ๐ฏ๐ต Japanese, ๐ซ๐ท French, ๐ฉ๐ช German, ๐บ๐ฆ Ukranian, ๐ท๐บ Russian, ๐ป๐ณ Vietnamese, ๐ฐ๐ท Korean, ๐ฒ๐พ Malay, ๐ฎ๐น Italian, ๐ฎ๐ฉ Indonesian, ๐ช๐ธ Spanish, ๐ต๐น Portuguese, ๐น๐ท Turkey, ๐ธ๐ฆ Arabic, ๐ณ๐ฑ Dutch.
Installation
There are four ways to use ZLImageEditor in your project:
- using CocoaPods
- using Carthage
- using Swift Package Manager
- manual install (build frameworks or embed Xcode Project)
CocoaPods
To integrate ZLImageEditor into your Xcode project using CocoaPods, specify it to a target in your Podfile:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
use_frameworks!
target 'MyApp' do
# your other pod
# ...
pod 'ZLImageEditor'
end
Then, run the following command:
$ pod install
If you cannot find the latest version, you can execute
pod repo updatefirst
Carthage
To integrate ZLImageEditor into your Xcode project using Carthage, specify it in your Cartfile:
github "longitachi/ZLImageEditor"
Then, run the following command to build the ZLImageEditor framework:
$ carthage update ZLImageEditor
Swift Package Manager
- Select File > Swift Packages > Add Package Dependency. Enter https://github.com/longitachi/ZLImageEditor.git in the "Choose Package Repository" dialog.
- In the next page, specify the version resolving rule as "Up to Next Major" with "3.0.0" as its earliest version.
- After Xcode checking out the source and resolving the version, you can choose the "ZLImageEditor" library and add it to your app target.
Support
- โ Star this repo.
- Support with
or
or 
Demo Effect
