SDWebImageSwiftUI icon indicating copy to clipboard operation
SDWebImageSwiftUI copied to clipboard

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

Open schwjustin opened this issue 4 years ago • 1 comments

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.

schwjustin avatar May 30 '21 02:05 schwjustin

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.

quintonpryce avatar Oct 26 '22 20:10 quintonpryce