[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-6845":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":10,"pushedAt":10,"updatedAt":36,"readmeContent":37,"aiSummary":38,"trendingCount":16,"starSnapshotCount":16,"syncStatus":39,"lastSyncTime":40,"discoverSource":41},6845,"ZLPhotoBrowser","longitachi\u002FZLPhotoBrowser","longitachi","Wechat-like image picker. Support select photos, videos, gif and livePhoto. Support edit image and crop video. 微信样式的图片选择器，支持预览\u002F相册内拍照及录视频、拖拽\u002F滑动选择，编辑图片\u002F视频，支持多语言国际化等功能; ","",null,"Swift",4988,1016,71,22,0,1,8,31.02,"Apache License 2.0",false,"master",true,[25,26,27,28,29,30,31,32,33,34,35],"editimage","editvideo","gallery","gif","imagepicker","ios","livephoto","photolibrary","photos","picker","swift","2026-06-12 02:01:30","[![Version](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fv\u002Ftag\u002Flongitachi\u002FZLPhotoBrowser.svg?color=blue&include_prereleases=&sort=semver)](https:\u002F\u002Fcocoapods.org\u002Fpods\u002FZLPhotoBrowser)\n[![Carthage compatible](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FCarthage-compatible-brightgreen.svg?style=flat)](https:\u002F\u002Fgithub.com\u002FCarthage\u002FCarthage)\n[![SPM supported](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FSwiftPM-supported-E57141.svg)](https:\u002F\u002Fswift.org\u002Fpackage-manager\u002F)\n[![License](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-Apache%202.0-black)](https:\u002F\u002Fraw.githubusercontent.com\u002Flongitachi\u002FZLPhotoBrowser\u002Fmaster\u002FLICENSE)\n[![Platform](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FPlatforms-iOS-blue?style=flat)](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FPlatforms-iOS-blue?style=flat)\n![Language](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLanguage-%20Swift%20-E57141.svg)\n[![Usage](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FUsage-Doc-yarn?style=flat)](https:\u002F\u002Fgithub.com\u002Flongitachi\u002FZLPhotoBrowser\u002Fwiki\u002FHow-to-use-(Swift))\n\n![image](https:\u002F\u002Fgithub.com\u002Flongitachi\u002FImageFolder\u002Fblob\u002Fmaster\u002FZLPhotoBrowser\u002Fpreview_with_title.png)\n\n----------------------------------------\n\nEnglish | [简体中文](https:\u002F\u002Fgithub.com\u002Flongitachi\u002FZLPhotoBrowser\u002Fblob\u002Fmaster\u002FREADME_CN.md)\n\nZLPhotoBrowser is a Wechat-like image picker. Support select normal photos, videos, gif and livePhoto. Support edit image and crop video.\n\n### Directory\n* [Features](#features)\n* [Requirements](#requirements)\n* [Usage](#usage)\n* [Change Log](#change-log)\n* [Languages](#languages)\n* [Installation(Support Cocoapods\u002FCarthage\u002FSPM)](#installation)\n* [Support](#support)\n* [Demo Effect](#demo-effect)\n\nDetailed usage of `Swift` and `OC`, please refer to [Wiki](https:\u002F\u002Fgithub.com\u002Flongitachi\u002FZLPhotoBrowser\u002Fwiki).\n\nIf you only want to use the image edit feature, please move to [ZLImageEditor](https:\u002F\u002Fgithub.com\u002Flongitachi\u002FZLImageEditor).\n\n### Features\n- [x] Support SwiftUI.\n- [x] Portrait and landscape.\n- [x] Two framework style.\n- [x] Support page loading.\n- [x] Preview selection (Support drag and drop).\n- [x] Library selection (Support sliding selection).\n- [x] Image\u002FGif\u002FLivePhoto\u002FVideo.\n- [x] Customize the maximum number of previews or selection, the maximum and minimum optional duration of the video.\n- [x] Customize the number of columns displayed in each row.\n- [x] Image editor (Draw\u002FCrop\u002FImage sticker\u002FText sticker\u002FMosaic\u002FFilter\u002FAdjust(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).\n- [x] Video editor.\n- [x] Custom camera.\n- [x] Multi-language.\n- [x] Selected index.\n- [x] Selected\u002Funselectable state shadow mask.\n- [x] The selected photos are displayed at the bottom of the big picture interface, which can be dragged and sorted.\n- [x] The camera's internal photo cell can displays the captured images of the camera.\n- [x] Customize font.\n- [x] The color of each part of the framework can be customized (Provide dynamic color can support light\u002Fdark mode).\n- [x] Customize images.\n\n> If you have good needs and suggestions in use, or encounter any bugs, please create an issue and I will reply in time.\n \n### Requirements\n * iOS 10.0\n * Swift 5.x\n * Xcode 14.x\n \n### Usage\n - Preview selection\n ```swift\n let picker = ZLPhotoPicker()\n picker.selectImageBlock = { [weak self] results, isOriginal in\n     \u002F\u002F your code\n }\n picker.showPreview(animate: true, sender: self)\n ```\n \n - Library selection\n ```swift\n let picker = ZLPhotoPicker()\n picker.selectImageBlock = { [weak self] results, isOriginal in\n     \u002F\u002F your code\n }\n picker.showPhotoLibrary(sender: self)\n ```\n \n - Pay attention, you need to add the following key-value pairs in your app's Info.plist\n\n ```\n \u002F\u002F If you don’t add this key-value pair, multiple languages are not supported, and the album name defaults to English\n Localized resources can be mixed   YES\n \n Privacy - Photo Library Usage Description\n\n Privacy - Camera Usage Description\n\n Privacy - Microphone Usage Description\n ```\n \n \n### Change Log\n> [More logs](https:\u002F\u002Fgithub.com\u002Flongitachi\u002FZLPhotoBrowser\u002Fblob\u002Fmaster\u002FCHANGELOG.md)\n```\n● 4.7.4\n  Add:\n    Supports editing multiple videos.\n    Change the license from MIT to Apache-2.0.\n● 4.7.3\n  Fix:\n    Fixed the issue where the eraser position was displayed incorrectly when editing pictures.\n● 4.7.2\n  Add:\n    Improved video editing experience:\n      1. Added a shadow area mask for a clearer view of the currently selected video clip.\n      2. Added a feature to display the duration of the currently selected clip.\n    The ZLImagePreviewController interface supports disabling the pull-down return gesture.\n    Change the permission of ZLPhotoPreviewSheet to private.\n  Fix:\n    Fixed a bug where the UI of the thumbnail interface might display an error when the permission is \"limited\".\n...\n```\n\n### Languages\n🇨🇳 Chinese, 🇺🇸 English, 🇯🇵 Japanese, 🇫🇷 French, 🇩🇪 German, 🇷🇺 Russian, 🇻🇳 Vietnamese, 🇰🇷 Korean, 🇲🇾 Malay, 🇮🇹 Italian, 🇮🇩 Indonesian, 🇪🇸 Spanish, 🇵🇹 Portuguese, 🇹🇷 Turkish, 🇸🇦 Arabic, 🇳🇱 Dutch.\n\n### Installation\nThere are four ways to use ZLPhotoBrowser in your project:\n\n  - using CocoaPods\n  - using Carthage\n  - using Swift Package Manager\n  - manual install (build frameworks or embed Xcode Project)\n\n#### CocoaPods\nTo integrate ZLPhotoBrowser into your Xcode project using CocoaPods, specify it to a target in your Podfile:\n\n```\nsource 'https:\u002F\u002Fgithub.com\u002FCocoaPods\u002FSpecs.git'\nplatform :ios, '10.0'\nuse_frameworks!\n\ntarget 'MyApp' do\n  # your other pod\n  # ...\n  pod 'ZLPhotoBrowser'\nend\n```\n\nThen, run the following command:\n\n```\n$ pod install\n```\n\n> If you cannot find the latest version, you can execute `pod repo update` first\n\n#### Carthage\nTo integrate ZLPhotoBrowser into your Xcode project using Carthage, specify it in your Cartfile:\n\n```\ngithub \"longitachi\u002FZLPhotoBrowser\"\n```\n\nThen, run the following command to build the ZLPhotoBrowser framework:\n\n```shell\n$ carthage update\n```\n\nIf 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\nRebuild with --use-xcframeworks to create an xcframework bundle instead.` [Click this link](https:\u002F\u002Fgithub.com\u002FCarthage\u002FCarthage\u002Fblob\u002Fmaster\u002FDocumentation\u002FXcode12Workaround.md).\n\n#### Swift Package Manager\n1. Select File > Add Packages. Enter https:\u002F\u002Fgithub.com\u002Flongitachi\u002FZLPhotoBrowser.git in the \"Choose Package Repository\" dialog.\n2. In the next page, specify the version resolving rule as \"Up to Next Major\" with \"4.7.4\" as its earliest version.\n3. After Xcode checking out the source and resolving the version, you can choose the \"ZLPhotoBrowser\" library and add it to your app target.\n\n### Support\n* [**★ Star**](#) this repo.\n* Support with \u003Cimg src=\"https:\u002F\u002Fgithub.com\u002Flongitachi\u002FImageFolder\u002Fblob\u002Fmaster\u002FZLPhotoBrowser\u002Fap.png\" width = \"100\" height = \"125\" \u002F> or \u003Cimg src=\"https:\u002F\u002Fgithub.com\u002Flongitachi\u002FImageFolder\u002Fblob\u002Fmaster\u002FZLPhotoBrowser\u002Fwp.png\" width = \"100\" height = \"125\" \u002F> or \u003Cimg src=\"https:\u002F\u002Fgithub.com\u002Flongitachi\u002FImageFolder\u002Fblob\u002Fmaster\u002FZLPhotoBrowser\u002Fpp.png\" width = \"150\" height = \"125\" \u002F>\n\n### Demo Effect\n- Selection\n![image](https:\u002F\u002Fgithub.com\u002Flongitachi\u002FImageFolder\u002Fblob\u002Fmaster\u002FZLPhotoBrowser\u002F%E5%BF%AB%E9%80%9F%E9%80%89%E6%8B%A9.gif)\n![image](https:\u002F\u002Fgithub.com\u002Flongitachi\u002FImageFolder\u002Fblob\u002Fmaster\u002FZLPhotoBrowser\u002F%E7%9B%B8%E5%86%8C%E5%86%85%E9%83%A8%E9%80%89%E6%8B%A9.gif)\n![image](https:\u002F\u002Fgithub.com\u002Flongitachi\u002FImageFolder\u002Fblob\u002Fmaster\u002FZLPhotoBrowser\u002F%E9%A2%84%E8%A7%88%E5%A4%A7%E5%9B%BE.gif)\n\n- Image editor\n\n![image](https:\u002F\u002Fgithub.com\u002Flongitachi\u002FImageFolder\u002Fblob\u002Fmaster\u002FZLPhotoBrowser\u002FeditImage.gif)\n\n- Video editor\n\n![image](https:\u002F\u002Fgithub.com\u002Flongitachi\u002FImageFolder\u002Fblob\u002Fmaster\u002FZLPhotoBrowser\u002FeditVideo.gif)\n\n- Multi-language\n\n![image](https:\u002F\u002Fgithub.com\u002Flongitachi\u002FImageFolder\u002Fblob\u002Fmaster\u002FZLPhotoBrowser\u002F%E5%A4%9A%E8%AF%AD%E8%A8%80.gif)\n\n- Custom camera\n\n![image](https:\u002F\u002Fgithub.com\u002Flongitachi\u002FImageFolder\u002Fblob\u002Fmaster\u002FZLPhotoBrowser\u002Fintroduce.png)\n\n\n","ZLPhotoBrowser 是一个微信风格的图片选择器，支持选择普通照片、视频、GIF 和 Live Photo，并提供图片编辑和视频裁剪功能。该项目使用 Swift 语言开发，具备拖拽选择、滑动选择、多语言国际化等核心功能。它适用于需要在 iOS 应用中实现类似微信图片选择与编辑功能的场景，如社交应用、内容创作平台等。此外，ZLPhotoBrowser 还支持自定义最大预览或选择数量、视频时长限制、每行显示列数以及字体和颜色等细节设置，以满足不同应用的需求。",2,"2026-06-11 03:09:10","top_language"]