date(interval:kind:)
Tells the system a widget is relevant for a time interval and provides an additional contextual hint.
Declaration
static func date(interval: DateInterval, kind: RelevantContext.DateKind) -> RelevantContextParameters
- interval:
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.