Instance Method


Determines whether your complication can provide timeline entries for the future or the past.



func getSupportedTimeTravelDirections(for complication: CLKComplication, withHandler handler: @escaping (CLKComplicationTimeTravelDirections) -> Void)



The complication tied to the request.


The handler to execute with the Time Travel directions. This block has no return value and takes the following parameter:


The supported time travel directions. You may combine the values of the CLKComplicationTimeTravelDirections type when specifying this value.


The system calls this method to determine whether your app can provide future or past data entries for the specified complication type. Your implementation of this method must execute the block in the handler parameter and specify the supported directions.

Include the backward constant if your app provides a historical record of events that have occurred or information that was valid at specific times. For example, a music app could provide entries for songs that have already played.

Include the forward constant if your app is able to generate complication data tied to future dates. For example, a calendar app would provide entries for future meeting times.


Time Travel Directions

struct CLKComplicationTimeTravelDirections

Constants indicating the supported time travel directions, if any.

See Also

Getting the Timeline Information

func getTimelineStartDate(for: CLKComplication, withHandler: (Date?) -> Void)

Retrieves the earliest date for which your complication is prepared to supply data.

func getTimelineEndDate(for: CLKComplication, withHandler: (Date?) -> Void)

Retrieves the latest date for which your complication is prepared to supply data.