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): add overlay image view support in the camera config #951

Closed tsinis closed 1 week ago

tsinis commented 2 weeks ago

Hi @longitachi, thanks for reviewing my previous PRs, here is (hopefully) the last one from my side :D.

This PR introduces a new feature to the camera config that allows users to add an overlay view on top of the camera view (useful for different kinds of scanners). This enhancement is designed to improve the camera's flexibility and functionality, especially for users who need to display custom overlays while capturing photos or videos. Again, this feature is similar to the overlay functionality available in the original UIImagePickerController.

Key Changes

Benefits

Non-Breaking Change

This change is non-breaking and does not affect existing functionality. The overlay view feature is optional and can be enabled by setting the overlayView parameter in ZLCameraConfiguration.


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