<!--
{
  "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/TimelineSchedule/explicit(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI16TimelineSchedulePAAE8explicityAA08ExplicitcD0Vyqd__Gqd__AGRszSTRd__10Foundation4DateV7ElementRtd__lFZ"
  },
  "title" : "explicit(_:)"
}
-->

# explicit(_:)

A schedule for updating a timeline view at explicit points in time.

```
@export(implementation) static func explicit<S>(_ dates: S) -> ExplicitTimelineSchedule<S> where Self == ExplicitTimelineSchedule<S>, S : Sequence, S.Element == Date
```

## Parameters

`dates`

The sequence of dates at which a timeline view
updates. Use a monotonically increasing sequence of dates,
and ensure that at least one is in the future.

## Discussion

Initialize a [`TimelineView`](/documentation/SwiftUI/TimelineView) with an explicit timeline schedule when
you want to schedule view updates at particular points in time:

```
let dates = [
    Date(timeIntervalSinceNow: 10), // Update ten seconds from now,
    Date(timeIntervalSinceNow: 12) // and a few seconds later.
]

struct MyView: View {
    var body: some View {
        TimelineView(.explicit(dates)) { context in
            Text(context.date.description)
        }
    }
}
```

The timeline view updates its content on exactly the dates that
you specify, until it runs out of dates, after which it stops changing.
If the dates you provide are in the past, the timeline view updates
exactly once with the last entry. If you only provide dates in the
future, the timeline view renders with the current date until the first
date arrives. If you provide one or more dates in the past and one or
more in the future, the view renders the most recent past date,
refreshing normally on all subsequent dates.

---

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)