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

Animation sometimes stops after one iteration. #22

Open drewmccormack opened 5 months ago

drewmccormack commented 5 months ago

I have no idea why, but the shimmer animation often stops for me after a single pass. This is using the default .shimmering() modifier, so it should repeat forever.

Oddly, sometimes it does seem to work properly. It may have to do with refreshes of the view somehow interrupting the animation.

Any thoughts as to what might cause the animation to stop?

markiv commented 5 months ago

Strange! Could you provide some code that illustrates the issue?