Contents

date(from:to:)

Tells the system a widget is relevant between two dates.

Declaration

static func date(from: Date, to: Date) -> RelevantContext

Parameters

  • from:

    The moment the widget becomes most relevant to a person.

  • to:

    The moment the widget is no longer relevant to a person.

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