Closed zhou7126 closed 2 years ago
现在就支持
let editImageConfiguration = ZLPhotoConfiguration.default().editImageConfiguration
editImageConfiguration
.tools([.clip])
.clipRatios([.wh1x1])
ZLPhotoConfiguration.default()
.maxSelectCount(1)
.editImageConfiguration(editImageConfiguration)
.editAfterSelectThumbnailImage(true)
.showClipDirectlyIfOnlyHasClipTool(true)
在最大选择张数为1时,图片列表页点击后就进入一个裁剪页,图片可以拖动和缩放,其他编辑功能就不要,在用户上传头像的场景很实用,因为头像宽高一般为1:1,有的还会要圆形和压缩。像这样:![WechatIMG42](https://user-images.githubusercontent.com/41935398/171665375-af5ccb27-f77f-4abc-be6a-9bc0374987f0.png)