SDWebImage / SDWebImageSwiftUI

SwiftUI Image loading and Animation framework powered by SDWebImage
https://sdwebimage.github.io/SDWebImageSwiftUI
MIT License
2.14k stars 219 forks source link

.transition not working when parent has .animation(nil) applied #188

Open schwjustin opened 3 years ago

schwjustin commented 3 years ago

I am using WebImages views and am trying to apply the .fade transition. I'm able to get the fade transition to work by just applying the .animation() modifier to a WebImage, but I only want the fade to transition, not any other properties (position, size, etc.). I have tried other variations of the .transition modifier such as .transition(AnyTransition.opacity.animation(Animation.default)) and nothing works. I found that people have run into similar issues and their solution is to also apply .zIndex(1), but adding that didn't work either.

quintonpryce commented 1 year ago

I've got a similar issue. I try to apply a transition to a parent view & the parent view and all other views will transition properly but the child view does not.