Contents

init(date:complicationTemplate:timelineAnimationGroup:)

Creates and returns a timeline entry with the specified information.

Declaration

convenience init(date: Date, complicationTemplate: CLKComplicationTemplate, timelineAnimationGroup: String?)

Parameters

  • date:

    The time at which to display the complication data.

  • complicationTemplate:

    The complication template containing the data to display. Specify a template that’s appropriate for the complication family.

  • timelineAnimationGroup:

    The animation group with which to associate the entry. For more information about how this value is used, see Timelineanimationgroup.

Return Value

A timeline entry initialized with the specified data.

Discussion

Use this method to create new timeline entries. You can change the values of the timeline entry later by modifying the properties of the returned object.

See Also

Creating a Timeline Entry