---
title: RelevanceKit
framework: RelevanceKit
role: collection
role_heading: Framework
platforms: [iOS 26.0+, iPadOS 26.0+, Mac Catalyst 26.0+, macOS 26.0+, visionOS 26.0+, watchOS 26.0+]
path: relevancekit
---

# RelevanceKit

Provide on-device intelligence with contextual clues that increase your widget’s visibility on Apple Watch.

## Overview

Overview On Apple Watch, widgets appear in the Smart Stack in an order that best fits a person’s context. To order the widgets that appear in the Smart Stack, watchOS attempts to determine a widget’s relevance based on several factors, including contextual clues your app provides to the system. To give your widget additional visibility in the watchOS Smart Stack and ensure it appears when a person needs it, use RelevanceKit to provide contextual clues that signal the widget’s relevance to the system. For example, your widget might be most useful at a specific location or time, or every time a person starts a workout. Note that you use RelevanceKit in combination with WidgetKit and App Intents to provide interactive and contextually relevant widgets in the Smart Stack, including iPhone widgets that appear on Apple Watch. When you add an import statement for App Intents to your code, App Intents implicitly adds a dependence to RelevanceKit . You don’t need to explicitly add import RelevanceKit to your code. For more information, refer to Increasing the visibility of widgets in Smart Stacks. note: Smart Stacks are available in iOS, iPadOS, and watchOS. However, functionality provided by RelevanceKit is only available in watchOS. Calling its API on other platforms doesn’t have any effect.

## Topics

### Providing relevance information

- [Increasing the visibility of widgets in Smart Stacks](widgetkit/widget-suggestions-in-smart-stacks.md)
- [RelevantContext](relevancekit/relevantcontext.md)

### Fitness clues

- [fitness(_:)](relevancekit/relevantcontext/fitness(_:).md)
- [RelevantContext.FitnessCondition](relevancekit/relevantcontext/fitnesscondition.md)

### Hardware clues

- [hardware(headphones:)](relevancekit/relevantcontext/hardware(headphones:).md)
- [RelevantContext.HeadphonesCondition](relevancekit/relevantcontext/headphonescondition.md)

### Location clues

- [location(_:)](relevancekit/relevantcontext/location(_:).md)
- [location(inferred:)](relevancekit/relevantcontext/location(inferred:).md)
- [RelevantContext.InferredLocation](relevancekit/relevantcontext/inferredlocation.md)

### Sleep clues

- [sleep(_:)](relevancekit/relevantcontext/sleep(_:).md)
- [RelevantContext.SleepCondition](relevancekit/relevantcontext/sleepcondition.md)

### Time clues

- [date(_:)](relevancekit/relevantcontext/date(_:).md)
- [date(_:kind:)](relevancekit/relevantcontext/date(_:kind:).md)
- [date(interval:kind:)](relevancekit/relevantcontext/date(interval:kind:).md)
- [date(range:kind:)](relevancekit/relevantcontext/date(range:kind:).md)
- [RelevantContext.DateKind](relevancekit/relevantcontext/datekind.md)
- [date(from:to:)](relevancekit/relevantcontext/date(from:to:).md)
