longitachi/ZLPhotoBrowser
longitachi/ZLPhotoBrowser has 4,991 GitHub stars and 1,016 forks. GitHot measured 0 stars in 24 hours, +1 in 7 days, and +3 in 15 days. Last checked 2026-11-24 22:21 UTC. Last push 2026-10-19.
What you can do
- Support SwiftUI.
- Support iPad multi-window.
- Support iPhone Duo.
- Portrait and landscape.
측정된 스타 증가
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +3
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
소개
WeChat 스타일의 이미지 선택기입니다. 사진, 동영상, GIF, Live Photo를 선택할 수 있으며 이미지 편집과 동영상 자르기도 지원합니다. 미리 보기, 앨범 내 사진 촬영 및 동영상 녹화, 드래그나 스와이프로 항목 선택, 이미지·동영상 편집, 다국어 지원 기능도 제공합니다.
창작 및 미디어README.md
Original
English | 简体中文
ZLPhotoBrowser is a Wechat-like image picker. Support select normal photos, videos, gif and livePhoto. Support edit image and crop video.
Directory
- Features
- Requirements
- Usage
- Change Log
- Languages
- Installation(Support Cocoapods/Carthage/SPM)
- Support
- Demo Effect
Detailed usage of Swift and OC, please refer to Wiki.
If you only want to use the image edit feature, please move to ZLImageEditor.
Features
- Support SwiftUI.
- Support iPad multi-window.
- Support iPhone Duo.
- Portrait and landscape.
- Two framework style.
- Support page loading.
- Preview selection (Support drag and drop).
- Library selection (Support sliding selection).
- Image/Gif/LivePhoto/Video.
- Customize the maximum number of previews or selection, the maximum and minimum optional duration of the video.
- Customize the number of columns displayed in each row.
- Image editor (Draw/Crop/Image sticker/Text sticker/Mosaic/Filter/Adjust(Brightness, Contrast and Saturation)), (Draw color can be customized; Crop ratio can be customized; Filter effect can be customized; You can choose the editing tool you want).
- Video editor.
- Custom camera.
- Multi-language.
- Selected index.
- Selected/unselectable state shadow mask.
- The selected photos are displayed at the bottom of the big picture interface, which can be dragged and sorted.
- The camera's internal photo cell can displays the captured images of the camera.
- Customize font.
- The color of each part of the framework can be customized (Provide dynamic color can support light/dark mode).
- Customize images.
If you have good needs and suggestions in use, or encounter any bugs, please create an issue and I will reply in time.
Requirements
| version | iOS | Xcode |
|---|---|---|
| >=6.0.0 | 15.0 | 27 |
| <6.0.0 | 10.0 | 26 |
Usage
- Preview selection
let picker = ZLPhotoPicker()
picker.selectImageBlock = { [weak self] results, isOriginal in
// your code
}
picker.showPreview(animate: true, sender: self)
- Library selection
let picker = ZLPhotoPicker()
picker.selectImageBlock = { [weak self] results, isOriginal in
// your code
}
picker.showPhotoLibrary(sender: self)
- Pay attention, you need to add the following key-value pairs in your app's Info.plist
// 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
Change Log
● 6.0.0
Add:
Adapted UI for iPhone Duo. Updated APIs to iOS 15.0.
● 5.0.0
Add:
Optimized UI for iPad multitasking and custom window sizes.
Updated partial APIs for iOS 26 and iOS 27 compatibility.
Added parameter to control whether camera dismisses when app enters background.
Added `supportLandscape` attribute; `enableWideCameras` now defaults to true.
Added `thumbVCAllowPanToDismiss` property.
Significantly optimized sticker and doodling editing experience.
Updated album filtering logic to display more system albums.
Fix:
Fixed incorrect selection limit prompt when only videos are allowed. #1048
Fixed transparent PNG images rendered with a white background. #1045
Fixed selection state not syncing after deselecting in preview. #1042
● 4.7.4
Add:
Supports editing multiple videos.
Change the license from MIT to Apache-2.0.
...
Languages
🇨🇳 Chinese, 🇺🇸 English, 🇯🇵 Japanese, 🇫🇷 French, 🇩🇪 German, 🇷🇺 Russian, 🇻🇳 Vietnamese, 🇰🇷 Korean, 🇲🇾 Malay, 🇮🇹 Italian, 🇮🇩 Indonesian, 🇪🇸 Spanish, 🇵🇹 Portuguese, 🇹🇷 Turkish, 🇸🇦 Arabic, 🇳🇱 Dutch.
Installation
There are four ways to use ZLPhotoBrowser in your project:
- using CocoaPods
- using Carthage
- using Swift Package Manager
- manual install (build frameworks or embed Xcode Project)
CocoaPods
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 updatefirst
Carthage
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.
Swift Package Manager
- Select File > Add Packages. Enter https://github.com/longitachi/ZLPhotoBrowser.git in the "Choose Package Repository" dialog.
- In the next page, specify the version resolving rule as "Up to Next Major" with "6.0.0" as its earliest version.
- After Xcode checking out the source and resolving the version, you can choose the "ZLPhotoBrowser" library and add it to your app target.
Support
- ★ Star this repo.
- Support with
or
or 
Demo Effect
Selection

Image editor

- Video editor

- Multi-language

- Custom camera

관련 프로젝트 살펴보기
불러오는 중…