Now you must find the answer to your question, but I will answer it to everyone who is trying to create the same.
First, you need to create images from 1-100 (their names are imported, so be careful with the names) to create a ring animation. You can use this application in the simulator to create ring images:
GitHub - WatchRingGenerator
After that, you should import your animated images into your project (it doesnβt matter if you import them into .xcassets or into a folder, but make sure that the purpose of your images is your viewing application, not the extension of the clock application or ios application)
After that, you can create your animation as follows:
override func awakeWithContext(context: AnyObject?){ super.awakeWithContext(context) imageView.setImageNamed("ringImage-") } override func willActivate() { imageView.startAnimatingWithImagesInRange(NSMakeRange(1, 46), duration: 1, repeatCount: 1)
Hope this helps.
source share