---
title: "init(from:by:)"
framework: swiftui
role: symbol
role_heading: Initializer
path: "swiftui/periodictimelineschedule/init(from:by:)"
---

# init(from:by:)

Creates a periodic update schedule.

## Declaration

```swift
init(from startDate: Date, by interval: TimeInterval)
```

## Parameters

- `startDate`: The date on which to start the sequence.
- `interval`: The time interval between successive sequence entries.

## Discussion

Discussion Use the entries(from:mode:) method to get the sequence of dates.
