Questions tagged [clockkit]

Apple's ClockKit framework (ClockKit.framework) allows to use complications on the Apple Watch.

83 questions
33
votes
2 answers

Where and When to get data for Watch Complication

After working with complications for a few days, I feel confident saying the following about the update process for updates that happen at a prescribed interval: The system calls requestedUpdateDidBegin() This is where you can determine if your…
El Tea
  • 1,206
  • 12
  • 21
22
votes
2 answers

What is the flow for updating complication data for Apple Watch?

I've been following a lot of tutorials on the internet to learn how to set up the complication. I have no problem getting the complication set up as expected. Until the initial timeline entries expire. After 12 hours, I do not know how to update it…
swiftyboi
  • 2,965
  • 4
  • 25
  • 52
14
votes
1 answer

Error message in Xcode when working with watch complications

When executing template.headerTextProvider = CLKSimpleTextProvider(text: header) in ComplicationController, I receive a whole number of similar error messages which I have not found a way to resolve so far: objc[4499]: Class…
7
votes
3 answers

Apple Watch complications are not reliably updated

I have an iPhone app that sends data from the iPhone app directly to the watch face to be displayed as a complication. I use the WatchConnectivity framework to create a WCSession to send the data to the watch from the phone. My data is stored in a…
7
votes
2 answers

Get Data to Complication: ExtensionDelegate not Called

(It looks like this issue has been encountered by others in previous weeks, but there haven't been any solutions that I've found.) I'm trying to do a really basic thing: Get data from either my iOS app or my Watch app to my Complication…
Sergio Prado
  • 1,197
  • 2
  • 16
  • 33
7
votes
2 answers

Can you extract the text from a CLKRelativeDateTextProvider?

I'm building up a set of Complications and have come to the CLKComplicationTemplateUtilitarianLargeFlat which only has one textProvider. I want to display some text, along with a relative date. So I tried doing this: let date =…
svarrall
  • 8,545
  • 2
  • 27
  • 32
6
votes
2 answers

No complication configuration in xcode for watchOS 9

I added a new watch app for an existing iOS App that is build with react native. I never developed a watch app before. I read everywhere that this should create two targets, the watch App and the App extension. But only a watch app gets created. Now…
jrenk
  • 1,387
  • 3
  • 24
  • 46
6
votes
1 answer

Complication Family support- don't show Complication Family if not supported

I'm wondering how to not show a Complication Family if I'm not supporting it. Example: Extra Large watch face In ComplicationController.swift's getLocalizableSampleTemplate and getCurrentTimelineEntry methods I just pass in a handler(nil) when…
SRMR
  • 3,064
  • 6
  • 31
  • 59
6
votes
1 answer

tintedImageProvider does not provide tint color in Graphic Complication

I am trying to create Graphic Complications for my Apple Watch app (namely Graphic Circular) and I've run into some problems. To support both multicolor and tinted watch faces, I use the following code to provide image for my complication: let…
6
votes
1 answer

watchOS - Show realtime departure data on complication

I have an public transport app with realtime departure data for trains. I would like to add a complication that shows the departure time of the next train. Is it possible to show (or refresh) realtime data on a complication? For example, showing "3…
5
votes
2 answers

Is transferCurrentComplicationUserInfo more suitable for complication update?

What is the difference between transferCurrentComplicationUserInfo and transferUserInfo? I want to send data from my AppDelegate to a clock kit complication. transferCurrentComplicationUserInfo seems to do exactly the same thing as…
5
votes
4 answers

CLKComplication tintColor not working

I am trying to change the colour of text in watch app complication (Modular large tall body), but whatever I do, the text stays white. Here's my code, of the lines that include tintColor, I've tried them together and each of them one by one. let…
user2634633
  • 509
  • 8
  • 21
4
votes
0 answers

Does ClockKit support custom text sizes in complications?

I'm working on a timer app for Apple Watch and would like to provide a circular complication with the remaining duration of a timer. Here is some example code, which you can preview in Xcode 12: import ClockKit import SwiftUI struct…
Felix
  • 776
  • 8
  • 16
4
votes
0 answers

Make the Text (Timer) Fit under CLKComplicationTemplateGrphicCircularOpenGaugeSimpleText

I am working on the watch complication for my app. The app main feature is to time tracking some tasks. So for .graphicCircular module, I choose to use the graphic circular open gauge template.…
nuynait
  • 1,912
  • 20
  • 27
4
votes
2 answers

Having complication data up to date when the user unlocks their watch?

I'm currently working on a simple app that displays data received over the network in a watchOS complication. Notably, this data is only relevant for ~30 minutes before a new network fetch is required. I'd like to have the complication be up to date…
Emma K Alexandra
  • 464
  • 3
  • 15
1
2 3 4 5 6