Skip to content

Fix WebImage showing empty image when entering edit mode #20

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

Merged
merged 2 commits into from
Oct 10, 2019

Conversation

dreampiggy
Copy link
Collaborator

This fix #19

Maybe the main reason is that SwiftUI internal trick, when entering edit mode, it will recreate your View.doby treenode, but the new created View struct does not trigger a onAppear method call. I don't think it's a designed behavior, I'll send a bugreport to Apple later.

But currentlly, we can do a better way to handle possible future cases like this. We query the image url once we can not load the image, SDWebImage Core will handle the duplicated loading call, it's OK on performance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

images disapears in list editMode manually set
1 participant