WatchOS 1.0.1 WKInterfaceTable rows no longer animating

Hi all,


Since WatchOS 1.0.1 animation has stopped working in parts of our app.


We have a mix of images which animate some are just in controllers and some in WKInterfaceTable rows. All the images in WKInterfaceTables have suddenly stopped working. Only the first frame shows and we no longer see the animation.


Initially we were just setting the duration propery in interface builder and then changing the image programtically. I've now updated the code to animate a range of images but this doesn't work either.


I've also set the image in interface builder and this also doesn't animate.


Has anyone experienced this or know how to resolve it?


Cheers

Replies

No update? Same problem here.

Have you filed a bug report? If not, could you file one at bugreport.apple.com and attach a sample project?

I have the same issue on watchOS 5.2 (just after installing the app).

Radar #51025241 submitted (with a code sample and a workaround).


My workaround is to call startAnimating on the next main loop like this:

final class AnimationTableRowController: NSObject {
    @IBOutlet weak private var animatedImage: WKInterfaceImage?
   
    let isWorkaroundEnabled = false
   
    override init() {
        super.init()
       
        if isWorkaroundEnabled {
            // Note: Animation didn't start so we postpone the start:
            DispatchQueue.main.async {
                if let animatedImage = self.animatedImage {
                    animatedImage.startAnimating()
                }
            }
        }
    }
}