<!--
{
  "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/PeriodicTimelineSchedule/entries(from:mode:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI24PeriodicTimelineScheduleV7entries4from4modeAC7EntriesV10Foundation4DateV_AA0dE4ModeOtF"
  },
  "title" : "entries(from:mode:)"
}
-->

# entries(from:mode:)

Provides a sequence of periodic dates starting from around a given date.

```
func entries(from startDate: Date, mode: TimelineScheduleMode) -> PeriodicTimelineSchedule.Entries
```

## Discussion

A [`TimelineView`](/documentation/SwiftUI/TimelineView) that you create with a schedule calls this method
to ask the schedule when to update its content. The method returns
a sequence of equally spaced dates in increasing order that represent
points in time when the timeline view should update.

The schedule defines its periodicity and phase aligment based on the
parameters you pass to its [`init(from:by:)`](/documentation/SwiftUI/PeriodicTimelineSchedule/init(from:by:)) initializer.
For example, for a `startDate` and `interval` of `10:09:30` and
`60` seconds, the schedule prepares to issue dates half past each
minute. The `startDate` that you pass to the `entries(from:mode:)`
method then dictates the first date of the sequence as the beginning of
the interval that the start date overlaps. Continuing the example above,
a start date of `10:34:45` causes the first sequence entry to be
`10:34:30`, because that’s the start of the interval in which the
start date appears.

---

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)