getTimeline(in:completion:)
Provides an array of timeline entries for the current time and, optionally, any future times to update a widget.
Declaration
@preconcurrency func getTimeline(in context: Self.Context, completion: @escaping @Sendable (Timeline<Self.Entry>) -> Void)Parameters
- context:
An object describing the context to show the widget in.
- completion:
The completion handler to call after you create the timeline.