longitachi / ZLPhotoBrowser

Wechat-like image picker. Support select photos, videos, gif and livePhoto. Support edit image and crop video. 微信样式的图片选择器,支持预览/相册内拍照及录视频、拖拽/滑动选择,编辑图片/视频,支持多语言国际化等功能;
MIT License
4.71k stars 950 forks source link

How to Add a Gallery Icon (Camera Roll) in the Camera Preview #908

Open meetiosdev opened 1 month ago

meetiosdev commented 1 month ago

Issue Description

Description and Steps

I want to add a gallery icon (Camera Roll) to the camera preview. Someone has done this in another issue https://github.com/longitachi/ZLPhotoBrowser/issues/809#issuecomment-1486840680

Info

ZLPhotoBrowser version: e.g. 4.5.3 Device: e.g. iPhone 14 Pro Device version: e.g. iOS 16.0 Xcode version: e.g. Xcode 14.0

Configuration code of ZLPhotoConfiguration

   Paste your code here.
longitachi commented 1 month ago

The permissions for ZLCustomCamera is open. If you want to use the camera independently, you can either subclass it or use runtime methods to modify it. Alternatively, you can fork the repository and make the changes. The framework itself does not support custom UI.