Contents

TimelineView.Context

Information passed to a timeline view’s content callback.

Declaration

struct Context

Overview

The context includes both the date from the schedule that triggered the callback, and a cadence that you can use to customize the appearance of your view. For example, you might choose to display the second hand of an analog clock only when the cadence is TimelineView.Context.Cadence.seconds or faster.

Topics

Getting the date

Getting the cadence

Invalidating the context

See Also

Creating a timeline