<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: -",
    "macOS: 11.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WidgetKit",
  "identifier" : "/documentation/WidgetKit/Timeline/init(entries:policy:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "WidgetKit"
    ],
    "preciseIdentifier" : "s:9WidgetKit8TimelineV7entries6policyACyxGSayxG_AA0C12ReloadPolicyVtcfc"
  },
  "title" : "init(entries:policy:)"
}
-->

# init(entries:policy:)

Creates a timeline for when you want WidgetKit to update a widget’s
view.

```
init(entries: [EntryType], policy: TimelineReloadPolicy)
```

## Parameters

`entries`

An array of timeline entries.

`policy`

The policy that determines the earliest date and time
WidgetKit requests a new timeline from a timeline provider.

## Discussion

Set the date and time of the first entry in a timeline to the current
date and time. Add entries for future dates and times when you want
WidgetKit to update the widget’s view. Note that the widget’s view
might not be updated precisely at a timeline entry’s date and time; the
update might occur later.

---

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)