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

请问在swiftui中怎么使用,可以帮忙给出一下示例吗 #823

Open wdnmd123-zzz opened 1 year ago

wdnmd123-zzz commented 1 year ago

Issue Description

Description and Steps

Please fill in the detailed description of the issue (full output of any stack trace, compiler error, ...) and the steps to reproduce the issue.

Info

ZLPhotoBrowser version: e.g. 4.4.2 Device: e.g. iPhone X Device version: e.g. iOS 14.0 Xcode version: e.g. Xcode 12.0

Configuration code of ZLPhotoConfiguration

   Paste your code here.
longitachi commented 1 year ago

平常开发中没有用到SwiftUI,https://github.com/longitachi/ZLPhotoBrowser/issues/574#issuecomment-759987540 这是之前的写法,不知道现在能用不能。

wdnmd123-zzz commented 1 year ago

平常开发中没有用到SwiftUI,#574 (comment) 这是之前的写法,不知道现在能用不能。

swiftui中可以打开选择器,里面功能也可以使用,但是选择完在页面上没有显示缩略图,这是什么原因

longitachi commented 1 year ago

没明白选择完之后页面上没显示缩略图什么意思?框架只负责把你选择的图片回调给你,具体怎么展示,你要自己去实现