Fix the transition visual jump between placeholderImage and final image for AnimatedImage by dreampiggy · Pull Request #326 · SDWebImage/SDWebImageSwiftUI

Conversation

@dreampiggy

This close the issue during the changes of #324

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

dreampiggy

super.init(frame: frameRect)
addSubview(wrapped)
observation = observe(\.wrapped.image, options: [.new]) { observe, change in
self.invalidateIntrinsicContentSize()

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

Choose a reason for hiding this comment

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

Use _, _ instead

1 participant

@dreampiggy