Questions tagged [clockkit]

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

83 questions
1
vote
1 answer

How to define data for two complications in CLKComplicationDataSource

So, I am kinda new with ClockKit Complications and I want to know how to make Placeholder Templates for two Complications. My Code as far: func getPlaceholderTemplateForComplication(complication: CLKComplication, withHandler handler:…
Frodo
  • 91
  • 1
  • 10
1
vote
1 answer

ClockKit CLKComplicationDataSource missing backward events

I write a test app with complications support For some reason clock faces presenting only 1-2 backward events, but I can see in logs 10-15 events before current date. And when I return an empty array for forward events all my backward events start…
1
vote
1 answer

How do I populate getPlaceholderTemplateForComplication using Objective C?

so this tutorial here is excellent http://www.sneakycrab.com/blog/2015/6/10/writing-your-own-watchkit-complications and this tells me that I need to set the fillFraction, ringStyle and textProvider, but its not jumping out to me from the docs what I…
Nik Burns
  • 3,363
  • 2
  • 29
  • 37
0
votes
1 answer

ClockKit and WidgetKit Complications in the same app

I am working on an application for watchOS that needs support from watchOS 7.0 to the last version, in terms of the app itself its going well, but I'm having problems with the complications, I have two sets of working complications, one made with…
0
votes
0 answers

runtime reload of iOS widget list

I have a WidgetBundle to show multiple Widgets for my app. Recently I migrated over ClockKit complications to use WidgetKit. Some of my Complications and now Widgets should only show up in the widgets list for a user if certain criteria is met, this…
iOSDevZ
  • 113
  • 4
0
votes
0 answers

ClockKit -- failed to call completion handler in -[CLKComplicationDataSource getLocalizableSampleTemplateForComplication:withHandler:]

I'm writing a SwiftUI-based Apple Watch app with a ClockKit-based complication. There is a need for, at certain times, the complication's timeline to be fully invalidated and re-generated from within the main Watch app. For this, I use…
tattar8
  • 11
  • 2
0
votes
0 answers

WatchOS complication getPlaceholderTemplate is being ignored

I have a complication working perfectly well on my Apple Watch (simulator and hardware). However, I cannot seem to get the representation to display correctly when you choose which app to assign to a complication area. In my case, graphic corner.…
0
votes
1 answer

Is it possible to have a ClockKit complications target and another WidgetKit complications target in the same workspace?

My app was originally an iOS app with a dependent watchOS extension. The watchOS extension used ClockKit complications. Recently, I started to upgrade the app: I added a watch-only target based on SwiftUI. This works. Now I want to migrate from my…
Reinhard Männer
  • 14,022
  • 5
  • 54
  • 116
0
votes
1 answer

Text with Text.DateStyle in SwiftUI View in Complication alignment

I want to create a complication rendered by a SwiftUI View that contains a label and a timer value. I want the label to be on the complication background layer, and the timer value to be on the complication foreground layer so that they get tinted…
Dustin
  • 409
  • 1
  • 4
  • 17
0
votes
1 answer

Is it possible to animate complications with WatchKit/ClockKit?

Obviously WatchOS is a resource constrained environment, and it's clear executed applications can animate to their heart's content, but is it possible for an active complication (specifically the large Modular center) to receive a context that can…
dakami
  • 1
  • 2
0
votes
0 answers

WatchOS TransferCurrentComplicationUserInfo limited execution per hour?

I am creating an app that shows bus schedules from my nearest bus stop. However if I am traveling between many busstops it seemes like the app stops to transfer data to my watch extension. I think this is a issue because of the limited background…
JoakimSjo
  • 1,786
  • 1
  • 10
  • 16
0
votes
1 answer

Apple Watch Complication Icon or Text

I made an Apple Watch App with Complication and activated the Modular Small one. I added the following code to ComplicationController.swift but I only get a square icon. Trying to put text or an image in it don't do anything. func…
unixb0y
  • 979
  • 1
  • 10
  • 39
0
votes
1 answer

ClockKit - reload timeline when Health Kit data changes

I'm writing a complication that relies on Health Kit data. I want to be able to reload the timeline when a the store changes, but not sure what to hook in to to do this.
Adam Carter
  • 4,741
  • 5
  • 42
  • 103
0
votes
1 answer

How to italicize text on watchOS 3 complication?

If you look at the calendar complication on watchOS 3, the second row of text below the date is italicized. I've searched the documentation high and low but can't find anything. I'm using all three providers in…
Moshe
  • 57,511
  • 78
  • 272
  • 425
0
votes
1 answer

When will getPlaceholderTemplateForComplication() method be called?

I'm trying to build a simple complication template for a WatchOS app, but I'm stuck trying to understand when will the ComplicationController class's method getPlaceholderTemplateForComplication() be called. Apple's documentation says When your…
Julius
  • 409
  • 4
  • 19