iosswiftwatchkitapple-watch-complicationclockkit

CLKComplicationTemplateUtilitarianSmallRingImage not showing image


I'm having issues using CLKComplicationTemplateUtilitarianSmallRingImage with a central image.

I'm pretty sure that at one point the image I choose was showing up within the progress ring, but after relauncing a few times, the image disappeared. Oddly, when I've tried to use it in CLKComplicationTemplateUtilitarianSmallSquare and CLKComplicationTemplateUtilitarianSmallFlat the image shows up just fine. For the life of me I cannot figure out what is going on.

Here is the code I'm using:

let smallRing = CLKComplicationTemplateUtilitarianSmallRingImage()  
smallRing.imageProvider = CLKImageProvider(onePieceImage: UIImage(named: "Complication/Utilitarian")!)  
smallRing.ringStyle = .Closed  
smallRing.fillFraction = 5 / 9  
handler(CLKComplicationTimelineEntry(date: NSDate(), complicationTemplate: smallRing))  

A few more details:

I have to be doing something unusual though.


Solution

  • Looks like this was a bug with WatchOS 2.2.1!

    Thankfully fixed in 2.2.2!