startAnimatingWithImagesInRange takes time to start the Animation

We want to animate the WKInterfaceGroup background image.

As per our design tean, we need to animate the background for 30 seconds and we have to use atleast 6 images per second.

When we use the API startAnimatingWithImagesInRange, it is taking lot of time to start the animation.

We are storing all the images in the app bundle, also we have optimized the images as per the design guidelines.

In simulator it works fine, there is no delay in starting the animation


Any one else seeing this issue. Any help on how to improve this loading time.

Replies

The images will take some time to load, so you need to account for that in the design of your application. You can load the animated image up-front though, before you need to start the animation. Then, when you start the animation, it should be much faster.


Use the setImage() API to set the WKInterfaceImage to a sequence of images:

public func setImage(image: UIImage?)


Then call startAnimating() when you'd like to begin the animation:


public func startAnimating()