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

Try to fix the recursive updateView when using AnimatedImage inside ScrollView/LazyVStack. Which cause App freeze #162

Merged
merged 3 commits into from
Feb 22, 2021

Conversation

dreampiggy
Copy link
Collaborator

@dreampiggy dreampiggy commented Feb 22, 2021

Because from iOS 14+, the @Published for UIViewRepresentable update will always trigger another updateUIView. No hack and workaround is needed. (For iOS 13+, it's Bug that will never trigger)

This fix #161 #121

See screenshot:

image

…crollView/LazyVStack`. Because from iOS 14+, the @published update will always trigger another `updateUIView`
@dreampiggy dreampiggy added the animated image AnimatedImage struct label Feb 22, 2021
@dreampiggy dreampiggy merged commit 5832951 into master Feb 22, 2021
@dreampiggy dreampiggy changed the title Try to fix the recusive updateView when using AnimatedImage inside ScrollView/LazyVStack. Try to fix the recursive updateView when using AnimatedImage inside ScrollView/LazyVStack. Which cause App freeze Feb 22, 2021
@dreampiggy dreampiggy deleted the bugfix_lazyvstack_recursive_update_freeze branch September 2, 2023 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
animated image AnimatedImage struct
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Freeze of the app
1 participant