<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/TimelineView/Context",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI12TimelineViewV7ContextV"
  },
  "title" : "TimelineView.Context"
}
-->

# TimelineView.Context

Information passed to a timeline view’s content callback.

```
struct Context
```

## Overview

The context includes both the [`date`](/documentation/SwiftUI/TimelineView/Context/date) from the schedule that triggered
the callback, and a [`cadence`](/documentation/SwiftUI/TimelineView/Context/cadence-swift.property) 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`](/documentation/SwiftUI/TimelineView/Context/Cadence-swift.enum/seconds) or faster.

## Topics

### Getting the date

[`date`](/documentation/SwiftUI/TimelineView/Context/date)

The date from the schedule that triggered the current view update.

### Getting the cadence

[`cadence`](/documentation/SwiftUI/TimelineView/Context/cadence-swift.property)

The rate at which the timeline updates the view.

[`TimelineView.Context.Cadence`](/documentation/SwiftUI/TimelineView/Context/Cadence-swift.enum)

A rate at which timeline views can receive updates.

### Invalidating the context

[`invalidateTimelineContent()`](/documentation/SwiftUI/TimelineView/Context/invalidateTimelineContent())

Resets any pre-rendered views the system has from the timeline.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)