I need to animate series of images.
// Animate Circle
let duration = 1.0
circleGroup.setBackgroundImageNamed("arc")
circleGroup.startAnimatingWithImagesInRange(NSRange(location: 0, length: 100), duration: duration, repeatCount: 0)
I have 101 images. From arc0 to arc100.
Storyboard:
As you can see on the gif, my problem is that animation doesn't make full circle trip. Any suggestion?
Looks like animation is stopping right after 40%. I opened asset library and renamed every file to the exactly same name. Then I opened my Git client and I saw this changes:
Animation now works. As you can see, problem was in a file name, it had extra space in it.
Also I learned that when doing backward animation location
becomes not the starting point but the destination.