Skip to content

Try to stop animating when dismantle UIViewRepresentable, fix the potential leak (bug ?) for AnmatedImage #21

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 1 commit into from
Oct 20, 2019

Conversation

dreampiggy
Copy link
Collaborator

If we don't override dismantleView method, seems SwiftUI will keep a strong retain to that SDAnmatedImageView and cause leak ? Like a bug but we can workaround.

@dreampiggy dreampiggy added the fix label Oct 20, 2019
@dreampiggy dreampiggy merged commit 29c3049 into master Oct 20, 2019
@dreampiggy dreampiggy deleted the fix_animated_image_potential_leak branch October 20, 2019 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant