Apple's ClockKit framework (ClockKit.framework) allows to use complications on the Apple Watch.
Questions tagged [clockkit]
83 questions
1
vote
0 answers
Download Data in Background URLSession in watchOS 7
I am trying to follow the WWDC20 session "Keep your complications up to date", WWDC20-10049. In trying to follow with the code, I have gotten stuck on the schedule function:
func schedule(_ first: Bool) {
if backgroundTask == nil { //Issue…

Yrb
- 8,103
- 2
- 14
- 44
1
vote
0 answers
Reload watchOS complications after timeline ends
I do not understand how I can reliable reload the complication timeline on watchOS after the current timeline ends.
In getTimelineEndDate:forComplication:withHandler (CLKComplicationDataSource) I'm returning the end of the current day.
My…

ersjoh
- 321
- 3
- 13
1
vote
1 answer
TintColor does not apply to my Complication when using rendering Mode "Template" (CLKComplicationTemplateGraphicCircularClosedGaugeImage)
I am currently trying to implement a
CLKComplicationTemplateGraphicCircularClosedGaugeImage
but for some reason my icon keeps getting tinted blue.
When I change the tintColor of the WatchFace everything seems to be tinted the right way. But when I…

Sebastian Boldt
- 5,283
- 9
- 52
- 64
1
vote
1 answer
iOS Watch ComplicationController not showing result
I have followed the Apple Developer guide on setting up my ComplicationController. I have set modularLarge enabled, and made sure its also enabled in info.plist.
I have set my data source in Complication Settings to…
user13891746
1
vote
1 answer
Updating an Apple Watch's complication's content at midnight
I've add my complication entries and this all seems to work well - each complication entry is scheduled for midnight.
I'm testing the time change by setting my Mac's date to the following day where I'm expecting my complication to update to the next…

Adam Carter
- 4,741
- 5
- 42
- 103
1
vote
1 answer
Composing Text Providers with CLKTextProvider.localizableTextProvider(withStringsFileFormatKey:, textProviders:)
Are there any official examples of setting up a complication using localizableTextProvider(withStringsFileFormatKey:, textProviders:)? I can get the text provider to populate when producing a SampleTemplate, but whenever I try to generate a template…

Emma K Alexandra
- 464
- 3
- 15
1
vote
1 answer
How to react to CLKComplicationServerActiveComplicationsDidChangeNotification
On the helpful question Force reload watchOS 2 Complications user @alexeyvmp mentions in a comment that you should add an observer for the CLKComplicationServerActiveComplicationsDidChangeNotification event.
What is a good place to create this…

oelna
- 2,210
- 3
- 22
- 40
1
vote
1 answer
watchOS - Complication shows previous entry
I'm creating a watchOS 3 complication that shows departure times from a public transit service. I've created a data model with an array that contains Train objects with a stationName (String) and departureTime (NSDate).
I've implemented the…

Bram
- 119
- 6
1
vote
1 answer
Apple Watch complication network requests
I'm creating a weather application that pulls its information from an online API.
I am able to get the information successfully in the GlanceController and in the InterfaceController. However, I'm a little unsure as to how I should do this for the…

glennbrann
- 173
- 1
- 10
1
vote
1 answer
Setting tintColor for Apple Watch complication
I am trying to set the header text color for a Modular Large complication.
I have already customized the watch face to use Multicolor.
However, when I build and run this code, the header text color is still white (which is the default).
Why isn't…

Harish
- 1,374
- 17
- 39
1
vote
1 answer
Why can't I import ClockKit and use CLKComplicationDataSource in an Xcode Playground?
I can import WatchKit and WatchConnectivity and use various delegates like WCSessionDelegate, without any problem.
But when I try to import ClockKit or add CLKComplicationDataSource, Xcode throws errors like "no module exists."
To check this, I…

Edison
- 11,881
- 5
- 42
- 50
1
vote
3 answers
Apple Clockkit - Multiple complications for same family
As a starting point to creating complications, static data can be presented in the following way by implementing the Complications delegate example code shown below:
This structure implies that I am only able to create one complication per…

MagicFlow
- 477
- 3
- 17
1
vote
1 answer
Real time clock on an Apple Watch Complication?
I am trying to make a complication that works like Apple's world clock complication. It would show a time in HH:mm, update in sync with the main clock and move backward and forward in time with time travel. It seems like the only text provider that…

tinyspark
- 51
- 3
1
vote
1 answer
Writing an Apple Watch Complication that predicts future values and displays time sensitive data
I am in the process of writing an Apple Watch Complication for WatchOS 2. The particular data I am trying to show is given (via web request) in intervals of time ranging from 3-6 minutes. I have a predictive algorithm that can predict what the data…

ericmarkmartin
- 717
- 1
- 8
- 19
1
vote
1 answer
Is it possible to launch a different app when tapping a complication?
For example, my App is called Complicate It. Currently when its complication is tapped, Complicate It opens. I'd like to be able to open a different app, say Messages, when the complication is tapped. Is this at all possible?

swiftyboi
- 2,965
- 4
- 25
- 52