Contents

date(range:kind:)

Tells the system a widget is relevant for a known date range and provides an additional contextual hint.

Declaration

static func date(range: ClosedRange<Date>, kind: RelevantContext.DateKind) -> RelevantContext

Parameters

  • range:

    The exact time and duration a widget is most relevant.

  • kind:

    An additional contextual hint that helps the system determine the widget’s relevance.

Return Value

A contextual clue that the system uses to determine the relevance of a widget in the Smart Stack on Apple Watch.

Discussion

See Also

Time clues