English | 简体中文
ZLPhotoBrowser is a Wechat-like image picker. Support select normal photos, videos, gif and livePhoto. Support edit image and crop video.
Detailed usage of Swift
and OC
, please refer to Wiki.
If you only want to use the image edit feature, please move to ZLImageEditor.
If you have good needs and suggestions in use, or encounter any bugs, please create an issue and I will reply in time.
let ps = ZLPhotoPreviewSheet()
ps.selectImageBlock = { [weak self] results, isOriginal in
// your code
}
ps.showPreview(animate: true, sender: self)
let ps = ZLPhotoPreviewSheet()
ps.selectImageBlock = { [weak self] results, isOriginal in
// your code
}
ps.showPhotoLibrary(sender: self)
// If you don’t add this key-value pair, multiple languages are not supported, and the album name defaults to English
Localized resources can be mixed YES
Privacy - Photo Library Usage Description
Privacy - Camera Usage Description
Privacy - Microphone Usage Description
● 4.4.8.1 (4.4.8 Patch)
● 4.4.8
Add:
Adapt to iOS 17, replace UIGraphicsBeginImageContextWithOptions with UIGraphicsImageRenderer.
Fix:
Fix the bug in ZLImagePreviewController where videos cannot be played.
● 4.4.7
Add:
Enhancing the drawing tool with an eraser function.
Display the total size of selected photos when the full image button is selected.
Fix:
Fix a bug where the video's start time is incorrect when cropping the video.
● 4.4.6
Add:
Supports setting whether the serial number is displayed on the selection button or not.
Add scroll to bottom button on Gallery picker.
In the image editor, all operations support undo and redo.
Dutch support added.
Supports setting the default font for text stickers.
Optimize the drop-down return effect of the preview interface.
Optimize screen rotation experience.
Fix:
Fix the bug that text stickers are not displayed when typing in Arabic.
...
🇨🇳 Chinese, 🇺🇸 English, 🇯🇵 Japanese, 🇫🇷 French, 🇩🇪 German, 🇷🇺 Russian, 🇻🇳 Vietnamese, 🇰🇷 Korean, 🇲🇾 Malay, 🇮🇹 Italian, 🇮🇩 Indonesian, 🇪🇸 Spanish, 🇵🇹 Portuguese, 🇹🇷 Turkish, 🇸🇦 Arabic, 🇳🇱 Dutch.
There are four ways to use ZLPhotoBrowser in your project:
To integrate ZLPhotoBrowser 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 'ZLPhotoBrowser'
end
Then, run the following command:
$ pod install
If you cannot find the latest version, you can execute
pod repo update
first
To integrate ZLPhotoBrowser into your Xcode project using Carthage, specify it in your Cartfile:
github "longitachi/ZLPhotoBrowser"
Then, run the following command to build the ZLPhotoBrowser framework:
$ carthage update
If you get an error like Building universal frameworks with common architectures is not possible. The device and simulator slices for "ZLPhotoBrowser" both build for: arm64 Rebuild with --use-xcframeworks to create an xcframework bundle instead.
Click this link.
Selection
Image editor
link |
Stars: 4581 |
Last commit: Yesterday |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics