Apple's ClockKit framework (ClockKit.framework) allows to use complications on the Apple Watch.
Questions tagged [clockkit]
83 questions
4
votes
0 answers
Updating Apple Watch Complication by fetching data using a URL request
I am having a complication that needs to update once in a while by fetching data from a server.
I am trying to fetch the data from the Watch. I am doing so by scheduling a WKRefreshBackgroundTask. When this task fires, I start a URL session to fetch…

Bocaxica
- 3,911
- 3
- 37
- 54
4
votes
1 answer
How do I make ClockKit generate more than just 100 timeline entries?
I am trying to create a ClockKit complication that provides data for when a person's next shift starts, but not enough timeline entries are being generated or generated often enough, so sometimes, the data is inaccurate after a certain amount of…

Joseph
- 293
- 4
- 12
4
votes
1 answer
Complication placeholder not showing
I've just added a complication to my watchOS app. I was able to select it on simulator's watch face, but it shows blank items. Temporary all methods of CLKComplicationDataSource return nil. I've created a new assets group for complication, added all…

kelin
- 11,323
- 6
- 67
- 104
4
votes
1 answer
Can't get Apple Watch complication to update in WatchOS 3
I can't get the Apple Watch Complication to update/refresh in WatchOS 3. I I'm using the following code in my ComplicationController.swift file.
func getSupportedTimeTravelDirections(for complication: CLKComplication, withHandler handler: @escaping…

user8175227
- 43
- 1
- 3
4
votes
1 answer
reloadTimeline() doesn't update complication
I'm trying to make a watchOS 3 app, and I want to update my complication in a background task.
First, I get new data from a server in a background task within handle(). After that, I update my active complications by calling…

Bram
- 119
- 6
4
votes
1 answer
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.…

Dandy
- 1,203
- 1
- 16
- 31
4
votes
1 answer
How can you display HealthKit data on a complication that is refreshed in the background?
I am trying to build a watchOS 2 complication that displays a user's health data, such as steps (but in theory it should be able to display any health data the user has given the app permission to view). When the complication first launches, I can…

lehn0058
- 19,977
- 15
- 69
- 109
4
votes
1 answer
How to connect and debug a custom ClockKit Complications controller?
I am trying get a custom ClockKit Complication working.
I created a custom ComplicationController conforming to CLKComplicationDataSource. It’s added to the Watch Extension’s plist as CLKComplicationPrincipalClass.
I am able to select a…

Bernd
- 11,133
- 11
- 65
- 98
4
votes
2 answers
updating WatchOS2 ClockKit complication with IOS data
I am trying to update a watchOS2 clockkit complication with data transferred via WatchConnectivity from IOS / iPhone.
Despite quite a bit of research, so far unsuccessful. I found though that other posts are describing similar challenge (with no…

TPeter
- 463
- 3
- 15
4
votes
1 answer
Force reload watchOS 2 Complications
I have issues getting Complications to work. It would be helpful if I was able to reliably refresh them.
Therefore I linked a force-press menu button to the following method
@IBAction func updateComplication() {
let complicationServer =…

Bernd
- 11,133
- 11
- 65
- 98
3
votes
0 answers
WidgetKit complications won't update
We are migrating ClockKit complications to WidgetKit in our watch app (watchOS 9+).
The migration went smoothly, UI part works just fine. However, we've hit the wall with widgets not updating when requested by the watch app.
I believe we are missing…

Serzhas
- 854
- 12
- 23
3
votes
2 answers
Multicolor Complication Text
I am creating a .graphicCorner ClockKit complication using the template CLKComplicationTemplateGraphicCornerTextImage. As mentioned in the Tech Talk Developing Complications for Apple Watch Series 4 it should be possible to combine multiple…

Bernd
- 11,133
- 11
- 65
- 98
3
votes
2 answers
watchOS 3 getSupportedTimeTravelDirections
I am trying to update my watchOS 2 app with complications to watchOS 3. Unfortunately I don't understand what I am doing wrong regarding the ComplicationController. I always get the following error (using Xcode 8 b6):
Type 'ComplicationController'…

MikeB
- 1,619
- 2
- 15
- 27
3
votes
2 answers
With a Watch Complication and Time Travel, getTimelineEntriesForComplication is called (too) often
From the data below, ClockKit generates future CLKComplicationTimelineEntry items once, but for past points in time, 24 calls are made! Why is this?
More details:
I'm noticing a curious behavior in my Apple Watch complication.
It supports Time…

oelna
- 2,210
- 3
- 22
- 40
3
votes
1 answer
Working with multiple images in a clockkit complication
I'm trying to put together a complication for my app, I'd like to have it potentially display different images depending on the content of the complication entry but am not sure how best to handle this.
I've got a complication group added to my…

jimbobuk
- 1,211
- 12
- 25