---
title: TimelineSchedule
framework: swiftui
role: symbol
role_heading: Protocol
path: swiftui/timelineschedule
---

# TimelineSchedule

A type that provides a sequence of dates for use as a schedule.

## Declaration

```swift
protocol TimelineSchedule
```

## Overview

Overview Types that conform to this protocol implement a particular kind of schedule by defining an entries(from:mode:) method that returns a sequence of dates. Use a timeline schedule type when you initialize a TimelineView. For example, you can create a timeline view that updates every second, starting from some startDate, using a periodic schedule returned by periodic(from:by:): TimelineView(.periodic(from: startDate, by: 1.0)) { context in     // View content goes here. } You can also create custom timeline schedules. The timeline view updates its content according to the sequence of dates produced by the schedule.

## Topics

### Getting built-in schedules

- [animation](swiftui/timelineschedule/animation.md)
- [animation(minimumInterval:paused:)](swiftui/timelineschedule/animation(minimuminterval:paused:).md)
- [everyMinute](swiftui/timelineschedule/everyminute.md)
- [explicit(_:)](swiftui/timelineschedule/explicit(_:).md)
- [periodic(from:by:)](swiftui/timelineschedule/periodic(from:by:).md)

### Getting a sequence of dates

- [entries(from:mode:)](swiftui/timelineschedule/entries(from:mode:).md)
- [Entries](swiftui/timelineschedule/entries.md)

### Specifying a mode

- [TimelineSchedule.Mode](swiftui/timelineschedule/mode.md)
- [TimelineScheduleMode](swiftui/timelineschedulemode.md)

### Supporting types

- [AnimationTimelineSchedule](swiftui/animationtimelineschedule.md)
- [EveryMinuteTimelineSchedule](swiftui/everyminutetimelineschedule.md)
- [ExplicitTimelineSchedule](swiftui/explicittimelineschedule.md)
- [PeriodicTimelineSchedule](swiftui/periodictimelineschedule.md)

## Relationships

### Conforming Types

- [AnimationTimelineSchedule](swiftui/animationtimelineschedule.md)
- [EveryMinuteTimelineSchedule](swiftui/everyminutetimelineschedule.md)
- [ExplicitTimelineSchedule](swiftui/explicittimelineschedule.md)
- [PeriodicTimelineSchedule](swiftui/periodictimelineschedule.md)

## See Also

### Updating a view on a schedule

- [Updating watchOS apps with timelines](watchos-apps/updating-watchos-apps-with-timelines.md)
- [TimelineView](swiftui/timelineview.md)
- [TimelineViewDefaultContext](swiftui/timelineviewdefaultcontext.md)
