How to infinitely loop and move image in swiftUI in intervals?
So I have an image whose width is greater than screen width. And I wanna move it across the screen in horizontal direction. Currently, I am able to animate it seamlessly but it is a continuous animation, and I want it to be in intervals. So right now, whole image is being animated in 10 seconds without stopping. What I want is that image to animate but with small breaks and gaps. (May be image animate to left with 100 pts, then stop, then again continue moving towards left). I have tried playing with offset but it isn’t working. Here is the current video Below is my code.