---
title: "init(_:content:)"
framework: swiftui
role: symbol
role_heading: Initializer
path: "swiftui/timelineview/init(_:content:)-67h35"
---

# init(_:content:)

Creates a new timeline view that uses the given schedule.

## Declaration

```swift
nonisolated init(_ schedule: Schedule, @ContentBuilder content: @escaping (TimelineView<Schedule, Content>.Context) -> Content)
```

## Parameters

- `schedule`: A schedule that produces a sequence of dates that indicate the instances when the view should update. Use a type that conforms to doc://com.apple.SwiftUI/documentation/SwiftUI/TimelineSchedule, like doc://com.apple.SwiftUI/documentation/SwiftUI/TimelineSchedule/everyMinute, or a custom timeline schedule that you define.
- `content`: A closure that generates view content at the moments indicated by the schedule. The closure takes an input of type doc://com.apple.SwiftUI/documentation/SwiftUI/TimelineView/Context that includes the date from the schedule that prompted the update, as well as a doc://com.apple.SwiftUI/documentation/SwiftUI/TimelineView/Context/Cadence-swift.enum value that the view can use to customize its appearance.
