Updating Complications

You’ve used Time Travel to provide a timeline of complication data, allowing your users to seek forward and backward in time to their hearts’ content. What do you do when you need to update this data? Suppose a user adds a new calendar event for a coffee date, or you have a weather app and a new hourly forecast comes out? ClockKit includes multiple methods of updating your complication with new information, so that once you provide an initial set of data, you can add to it or refresh it altogether. Let’s go through these methods and see which ones are best for NomNomNom.

Refreshing Data at an Interval

The easiest way to refresh complication data is at an interval. By providing a refresh date to ClockKit, you can ...

Get Developing for Apple Watch, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.