Initializer

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 is 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

init(date: Date, complicationTemplate: CLKComplicationTemplate)

Creates and returns a timeline entry with the specified date and complication data.