markiv / SwiftUI-Shimmer

Shimmer is a super-light modifier that adds a shimmering effect to any SwiftUI View, for example, to show that an operation is in progress. It works well on light and dark modes, and across iOS, macOS, tvOS, watchOS and visionOS.
MIT License
1.04k stars 60 forks source link

Crash with com.apple.SwiftUI.AsyncRenderer (36): EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0) #26

Open skywalkerlw opened 1 month ago

skywalkerlw commented 1 month ago

I call this way. This issue can be reproduced when I put my app into the background as soon as my app is launched.

.shimmering(active: isLoadingList)

If I remove the line .animate, no crash will happen. It's very similar to this : https://stackoverflow.com/questions/74727941/swiftui-animation-causes-app-to-crash-with-asyncrenderer

image