Contents

timeline(for:in:)

Provides an array of timeline entries for the current time and, optionally, any future times to update a widget.

Declaration

func timeline(for configuration: Self.Intent, in context: Self.Context) async -> Timeline<Self.Entry>

Parameters

  • configuration:

    The intent containing user-customized values.

  • context:

    An object describing the context to show the widget in.

Return Value

An array of timeline entries for the current time and, optionally, any future times to update a widget.

Discussion

The configuration parameter provides user-customized values, as defined in your custom intent.

See Also

Generating timelines