---
title: TimelineView.Context
framework: swiftui
role: symbol
role_heading: Structure
path: swiftui/timelineview/context
---

# TimelineView.Context

Information passed to a timeline view’s content callback.

## Declaration

```swift
struct Context
```

## Overview

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

- [date](swiftui/timelineview/context/date.md)

### Getting the cadence

- [cadence](swiftui/timelineview/context/cadence-swift.property.md)
- [TimelineView.Context.Cadence](swiftui/timelineview/context/cadence-swift.enum.md)

### Invalidating the context

- [invalidateTimelineContent()](swiftui/timelineview/context/invalidatetimelinecontent().md)

## See Also

### Creating a timeline

- [init(_:content:)](swiftui/timelineview/init(_:content:)-1mlmj.md)
