Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在swiftUI中加载卡顿问题 #88

Open
buluoray opened this issue Apr 5, 2021 · 4 comments
Open

在swiftUI中加载卡顿问题 #88

buluoray opened this issue Apr 5, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@buluoray
Copy link

buluoray commented Apr 5, 2021

ImagePicker在swiftUI中加载时卡顿,特别是如果在当前View加载而不是用.fullScreenCover的时候。有没有办法让它先快速的加载一个空白的View等picker完全加载好了再动画过渡进来。

@RayJiang16
Copy link
Member

能否提供一个可运行的 Demo 呢?

@buluoray
Copy link
Author

buluoray commented Apr 7, 2021

Test.zip
就是当有很多照片的时候,加载会卡顿,没有动画效果。这个demo比较简单,只是首次加载会卡顿,但是我还有其他frame的改变就会每次都没有进入动画只有消失动画

@RayJiang16
Copy link
Member

卡顿问题是因为用了同步加载,后续我们会对这一块做调整,改成异步加载,不过可能没那么快就做完。

@buluoray
Copy link
Author

太感谢了🙏我看了下微信他们是会显示一个加载中

@anotheren anotheren added this to the 0.14.0 milestone Jul 12, 2021
@anotheren anotheren added the bug Something isn't working label Jul 12, 2021
@anotheren anotheren removed this from the 0.14.0 milestone Nov 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants