Fix the transition visual jump between placeholderImage and final image for AnimatedImage by dreampiggy · Pull Request #326 · SDWebImage/SDWebImageSwiftUI
Conversation
This close the issue during the changes of #324
Also, the WebImage should use that Transaction during the image loading status changed
| 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters