Skip to content
SwiftSkills

TipKit with AI agents

Use TipKit for contextual tips that highlight new, interesting, or unused features people have not discovered yet. Conform to Tip for content and rules, call Tips.configure(_:) once per app session, and present an inline TipView or a popoverTip. Do not use tips as a walkthrough or for advertising. Look up Apple's TipKit docs first.

Last updated:

Apple facts are from "TipKit", "Highlighting app features with TipKit", "Tip", "TipView", "popoverTip(:arrowEdge:action:)", "Tips.configure(:)", "displayFrequency(_:)", "Tips.Rule", "Tips.Event", "Tips.Parameter", "TipGroup", "showAllTipsForTesting()" and "resetDatastore()" on developer.apple.com, and from "Offering help" in the Human Interface Guidelines. Tool facts are from each README. Stars as of 16 Nov 2026.

What Apple documents

  • TipKit is a framework for displaying tips that help people discover features in your app. Apple’s overview says to use it for contextual tips that highlight new, interesting, or unused features people haven’t discovered on their own yet. Define tip content, and the conditions under which tips appear, with the Tip protocol. Then present an inline TipView or a popoverTip(_:arrowEdge:action:) modifier. The framework is documented for iOS 17, iPadOS 17, Mac Catalyst 17, macOS 14, tvOS 16, visionOS 1 and watchOS 10. For design guidance, Apple points to the Human Interface Guidelines article Offering help. The broader HIG workflow stays in Apple HIG with AI agents.

  • Use tips sparingly so you don’t overwhelm people. Highlight nonobvious features they haven’t discovered on their own, and avoid displaying tips each time someone uses the app. Apple’s TipKit overview says tips can become distracting when they appear unnecessarily, and not to use tips to guide people through your app, or for advertising and promotion purposes.

  • Before tips display, they must load into the app. Call Tips.configure(_:) to load and configure the persistent state of all tips. Apple’s “Highlighting app features with TipKit” article says the best practice is to call this once per app session. Configuration options include displayFrequency(_:), which customizes how often new tips are presented after another tip has been displayed, datastoreLocation(_:) for a custom tips datastore location, and cloudKitContainer(_:) to set the CloudKit container used for syncing tips.

  • The Tip protocol sets a tip’s content and the conditions for when it displays. A Tips.Rule is a condition to meet before displaying a tip. A Tips.Parameter monitors the state of its wrapped value and reevaluates dependent tip rules when the value changes. A Tips.Event is a repeatable user-defined action. A TipGroup is a collection of tips that can be presented one at a time in a specific order, or based on the first tip eligible for display.

  • Prefer an inline TipView whenever possible so you don’t cover controls people may want to use; the underlying view alters its layout to accommodate the tip. Use a popover tip when adjusting that layout is undesirable or people don’t need to interact with any controls the tip obscures. If you use a popover, Apple’s article says to consider excluding imagery because the tip already points to the feature being highlighted. For UIKit, use TipUIView and TipUIPopoverViewController; for AppKit, use TipNSView and TipNSPopover. Action buttons can direct people to information or options.

  • For UI testing, Tips.showAllTipsForTesting() shows all tips regardless of display-rule eligibility or display-frequency status; Apple also documents the launch argument -com.apple.TipKit.ShowAllTips 1. Related test APIs include showTipsForTesting(_:), hideAllTipsForTesting(), hideTipsForTesting(_:) and Tips.resetDatastore(), which resets the tips datastore to the initial state so you can re-test display rules and eligibility.

Rules for AGENTS.md

Code

- Use TipKit for contextual tips that highlight new, interesting, or unused features people have not discovered on their own. Do not use tips to walk people through the app, or for advertising and promotion.
- Call Tips.configure(_:) once per app session to load and configure persistent tip state before presenting tips. Do not invent a parallel UserDefaults flag system for the same eligibility.
- Conform to the Tip protocol for content and display rules (Tips.Rule, Tips.Parameter, Tips.Event). Prefer an inline TipView so the layout can adjust; use popoverTip only when covering the underlying controls is acceptable.
- For UI tests, use Tips.showAllTipsForTesting() or the launch argument -com.apple.TipKit.ShowAllTips 1, and Tips.resetDatastore() when you need the initial datastore state. Look up Apple's TipKit and “Highlighting app features with TipKit” docs first.

Step 1: ground the agent in Apple's TipKit docs

Install Apple Docs MCP or Sosumi and ask it to open “TipKit”, “Highlighting app features with TipKit”, Tip, Tips.configure(_:), TipView and popoverTip(_:arrowEdge:action:). Confirm the work is a contextual feature tip, not a first-run walkthrough, a notification, or a promotion.

Step 2: configure TipKit once per session

Have the agent call Tips.configure(_:) at app start, once per session, before any tip view appears. Add displayFrequency(_:) if the product needs a gap after a tip has been shown. Do not let the agent skip configuration or invent a second store of “has seen tip” flags for eligibility TipKit already tracks.

Step 3: define the Tip and present it

Implement a type that conforms to Tip for title, message and rules. Prefer an inline TipView so the surrounding layout can adjust. Use popoverTip only when covering the underlying controls is acceptable, and consider omitting extra imagery on a popover. Use TipGroup when several tips should appear one at a time.

Step 4: review the SwiftUI around the featured control

Run swiftui-pro on the screen that hosts the featured control and the tip, so layout and contrast stay current when an inline tip resizes the view. Do not restyle system tip chrome beyond TipViewStyle as Apple documents it.

Tools compared (4)

ToolBest forAgents (README)Install (README)LicenseStarsLast push
Apple Docs MCP (kimsungwhee)Look up TipKit APIs, configuration and test overridesClaude Code, Cursor, VS Code, Windsurfclaude mcp add apple-docs -- npx -y @kimsungwhee/apple-docs-mcp@latestMIT138817 Mar 2026 ⚠
sosumi.ai (NSHipster)Pull TipKit and Offering help docs as Markdownany MCP hostnpx -y mcp-remote https://sosumi.ai/mcpMIT49213 Nov 2026
ApKI (Gucky)Route the agent to official Apple developer resourcesCodex, Claude Codenpx skills add https://github.com/Gucky/ApKI --skill apkiMIT23 Nov 2026
swiftui-pro (twostraws)Modern SwiftUI around the control the tip highlightsClaude Code, Cursor, Codex, Gemininpx skills add https://github.com/twostraws/SwiftUI-Agent-Skill --skill swiftui-proMIT657226 Oct 2026

⚠ = no push in the last 4 weeks.

Which one to pick

  • Official API lookup → Apple Docs MCP or Sosumi.

  • A short route into Apple's current developer resources → ApKI.

  • SwiftUI around the featured control → swiftui-pro.

A prompt that keeps the agent honest

Code

Add TipKit tips that highlight a nonobvious feature in this iOS app. Do not build a first-run walkthrough, a custom coach-mark system, or a promotional banner. Call Tips.configure(_:) once per app session before any tip appears. Conform to the Tip protocol for the tip content and display rules. Prefer an inline TipView so the layout can adjust; use popoverTip only if covering the underlying controls is acceptable. If several tips should appear one at a time, use TipGroup. For UI tests, tell me how to use Tips.showAllTipsForTesting() or the launch argument -com.apple.TipKit.ShowAllTips 1, and Tips.resetDatastore(). Look up “TipKit”, “Highlighting app features with TipKit”, Tip, Tips.configure(_:), TipView and popoverTip in Apple's docs first.

FAQ

When should I use TipKit instead of a custom onboarding walkthrough?
Use TipKit for contextual tips that highlight new, interesting, or unused features people have not discovered on their own. Apple’s TipKit overview says not to use tips to guide people through your app, or for advertising and promotion purposes, and to use tips sparingly so they do not appear every time someone opens the app. A first-run walkthrough is a different pattern and is out of scope for this page.
Do I have to call Tips.configure(_:)?
Yes, before tips display they must load into the app. `Tips.configure(_:)` loads and configures the persistent state of all tips. Apple’s “Highlighting app features with TipKit” article says the best practice is to call this once per app session. You can also pass options such as `displayFrequency(_:)` or a CloudKit container for syncing tip state.
Should I use TipView or popoverTip?
Prefer an inline `TipView` whenever possible so you do not cover controls people may want to use; the underlying view alters its layout to accommodate the tip. Use `popoverTip` when adjusting that layout is undesirable or people do not need to interact with any controls the tip obscures. If you use a popover, consider excluding imagery because the tip already points to the feature being highlighted.
How do I test tips in UI tests?
Call `Tips.showAllTipsForTesting()` to show all tips regardless of display-rule eligibility or display-frequency status, or pass the launch argument `-com.apple.TipKit.ShowAllTips 1`. Related APIs include `showTipsForTesting(_:)`, `hideAllTipsForTesting()`, `hideTipsForTesting(_:)` and `Tips.resetDatastore()`, which resets the tips datastore to the initial state so you can re-test eligibility.
Which tools should the agent use first?
Apple Docs MCP or Sosumi, so the agent opens “TipKit”, “Highlighting app features with TipKit”, `Tip`, `Tips.configure(_:)`, `TipView` and `popoverTip` instead of inventing a walkthrough or a second eligibility store. Add swiftui-pro for the SwiftUI around the featured control.