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

Fix the transition visual jump between placeholderImage and final image for AnimatedImage #326

Merged
merged 2 commits into from
Jul 1, 2024

Conversation

dreampiggy
Copy link
Collaborator

This close the issue during the changes of #324

Also, the WebImage should use that Transaction during the image loading status changed

@@ -77,11 +73,17 @@ public class AnimatedImageViewWrapper : PlatformView {
public override init(frame frameRect: CGRect) {
super.init(frame: frameRect)
addSubview(wrapped)
observation = observe(\.wrapped.image, options: [.new]) { observe, change in
self.invalidateIntrinsicContentSize()
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have to use KVO to get notified when subview's content changes...No better idea

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use _, _ instead

@dreampiggy dreampiggy force-pushed the bugfix/transition_animatedImage branch from d7c7639 to d68c13a Compare July 1, 2024 11:45
@dreampiggy dreampiggy merged commit fc52658 into master Jul 1, 2024
6 checks passed
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