Questions tagged [clockkit]

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

83 questions
0
votes
0 answers

Complication update causes short iOS app freeze

I am updating an Apple Watch complication. But when I am calling session.transferCurrentComplicationUserInfo(userInfo) on iOS my app freezes for a fraction of a second, sometimes longer. When it's during a drag gesture or animation it is…
Bernd
  • 11,133
  • 11
  • 65
  • 98
0
votes
1 answer

Constructing a date for getRequestedUpdateDateWithHandler:

I need to update my watchOS complication at midnight every day. startOfDay is the beginning of the day (i.e., 12 AM today). Should I add a day to the start of today like this? func getNextRequestedUpdateDateWithHandler(handler: (NSDate?) -> Void) { …
Harish
  • 1,374
  • 17
  • 39
0
votes
1 answer

Get timeline entry and template used for active complication?

I'd like to conditionally reload my active complication in the requestedUpdateDidBegin function or actually tell ClockKit to set the next check 15 minutes before the end of the current timeline entry, but how can I do that without knowing what's in…
TruMan1
  • 33,665
  • 59
  • 184
  • 335
0
votes
1 answer

Display heart rate via ClockKit complication?

I'm developing a watchOS app for tracking the heart rate, and it's working well. Is it possible to display the computed heart rate value on a complication using ClockKit?
Mahalakshmi.J
  • 189
  • 2
  • 14
0
votes
1 answer

Watchkit complication click action

I have written an Apple Watch app with a complication that works well. But I often accidentally click on that complication, and it opens my watch app. Is there some attribute to tell the complication that there is no action when I click on it? As an…
kecinzer
  • 3
  • 2
0
votes
2 answers

How can I get the header of a complication to wrap onto the body lines?

I have one phrase that will be the entirety of the complication. Sometimes it is short enough to occupy the header alone. However, sometimes it is too long and I need it to wrap onto the body lines. I can't for the life of me figure out how to get…
swiftyboi
  • 2,965
  • 4
  • 25
  • 52
0
votes
2 answers

Can I use ClockKit with a custom background image and complications at the same time?

I would like to use a watch face with a custom image (as shown during the WWCD'15 keynote) and, at the same time, show complications. How can I do this? I have studied the ClockKit documentation but could not find a way to do this. Update: It seems…
John
  • 8,468
  • 5
  • 36
  • 61
-1
votes
2 answers

I don't know what the Swift return value would be

Xcode is saying to input a return value but I have no clue as to what return value to use. func getCurrentTimelineEntry(for complication: CLKComplication, withHandler handler: @escaping (CLKComplicationTimelineEntry?) -> Void) { let entry =…
Maxbo5020
  • 25
  • 2
1 2 3 4 5
6