Closed wishWinds closed 11 months ago
I don't think add this into a ObservedObject is suitable...
The correct way maybe put this withAnimation
into the WebImage
's return body of images
It may has no way to trigger animation within onSuccess
callback. the imageManager
are internal. and exposing the manager is not a good choice.
What I'm thinking is give a chance to tell the framework using animation when remote image Is come.
I'm thinking add a enableAnimation
modifier to WebImage.
If you think this may be a right approach. I will make a new PR!
Thanks.
Thank you
Any updates on this? Still not working for me
any update? transition still broken
I found a workaround here: https://github.com/SDWebImage/SDWebImageSwiftUI/issues/272
why did you close the PR?
This will fix transition modifier not working. The side effect is transition will always animate even if image is load from memory or disk cache.