longitachi / ZLPhotoBrowser

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

feat(camera): wide zoom cameras in custom camera #948

Closed tsinis closed 2 weeks ago

tsinis commented 3 weeks ago

Hey again @longitachi, thanks for reviewing my previous PRs, here is another one.

This PR introduces a new feature to the ZLCustomCamera that allows users to utilize wide cameras (e.g., .builtInTripleCamera, .builtInDualWideCamera, .builtInDualCamera). This enhancement is designed to improve the flexibility and functionality of the camera, especially for users who need to capture wider shots. And it's also a feature that exists in the original UIImagePickerController but is missing in ZLCustomCamera.

Key Changes

Benefits

Non-Breaking Change

This change is non-breaking and does not affect existing functionality. The wide camera feature is disabled by default and can be enabled by setting the enableWideCameras parameter to true.


Please review the changes and let me know if there are any adjustments or additional features you would like to include. Thank you!