-
Notifications
You must be signed in to change notification settings - Fork 247
Fix for Hang Issue: Improving App Performance with Asynchronous Image... #330
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
Conversation
because all the processes run on the main thread
Not actually. Only the render part and query cache happended on main queue, it's by design
My SwiftUI app hangs after adding WebImage to the screen. I have displayed a list of WebImages in a ScrollView and LazyHStack. I checked the Instrument tool, it displayed app processes on the main thread. After making the load() and cancel() methods asynchronous, my app works smoothly.
My SwiftUI app hangs after adding WebImage to the screen. I have displayed a list of WebImages in a ScrollView and LazyHStack. I checked the Instrument tool, it displayed app processes on the main thread. After making the load() and cancel() methods asynchronous, my app works smoothly.
Can you provide your xctrace
result ? With your App.dSYM and SDWebImageSwiftUI.dSYM is better (to symbolicate the symbols)
You can send me privately via email (not GitHub comment)
My app hangs when multiple web image loads on the screen using a scroll view, because all the processes run on the main thread. Therefore, I made the load() and cancel() methods asynchronous, separating the tasks to other threads, so the app works smoothly.