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

Move animation setting before image setting #1873

Merged
merged 2 commits into from
Nov 24, 2021
Merged

Conversation

onevcat
Copy link
Owner

@onevcat onevcat commented Nov 23, 2021

This should fix an issue mentioned here: #1849 (comment)

When animation is nil, it seems that using of withAnimation(animation) cannot guarantee the value is available and "published" correctly by the @Published wrapper. So the ImageRenderer does not catch it and renders an 0.0 opacity incorrectly.

This patch fixes this case by checking the animation, as well as calling it ahead.

@onevcat onevcat merged commit 9fb0e18 into master Nov 24, 2021
@onevcat onevcat deleted the fix/animation-loaded branch November 24, 2021 12:40
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.

1 participant