# Add Apple Docs to Cursor Composer

> Index official Apple documentation as reference docs inside Cursor's AI composer

A workflow tip for setting up Cursor to index Apple's official documentation and design guidelines. By referencing these sources with @-mentions during prompts, the AI assistant aligns generated code and UI layouts with Apple's official best practices.

## How it works

1. In Cursor composer, type @ and find Docs \> Add new doc. 2. Paste https://developer.apple.com/documentation/swift/ as the entrypoint, name it 'Swift'. 3. Repeat with https://developer.apple.com/design/tips/ and name it 'Apple Design Tips'. 4. Mention @Swift and @Apple Design Tips in the prompt when building an iOS app.

## What it is for

- Generate iOS and macOS code aligned with modern Swift standards
- Ensure SwiftUI interfaces follow Apple's Human Interface Guidelines and design tips
- Provide accurate context to Cursor when working with recently updated Apple APIs

## Key points

- Navigate to the @-mention menu in Cursor composer and choose Docs \> Add new doc
- Index official Swift documentation using its primary entry point URL
- Index Apple Design Tips to provide the composer with UI guidance
- Reference the indexed sources using @Swift and @Apple Design Tips in development prompts

## Pricing

Free

## Details

- Type: Tip
- Category: [Development](https://xiry.app/topics/development.md)
- Open source: no
- Platforms: macOS, Windows, Linux
- For: iOS and macOS developers using Cursor
- Tags: cursor, swift, ios, documentation, ai coding, tips

## Why it was saved

- [@amazonjeff67, 6 November 2024](https://x.com/amazonjeff67/status/1854275516473254044): Lets Cursor's composer pull in Apple's official guidelines as a @-mentionable doc, so generated iOS code and UI follow Apple's best practices.

## Related

- [Any Distance Goes Open Source](https://xiry.app/resources/any-distance-goes-open-source): Deep-dive writeup and open-source release of the Apple Design Award–winning fitness tracker. (Article or course, Free)
- [8-Step Cursor Beginner Workflow](https://xiry.app/resources/8-step-cursor-beginner-workflow): Practical eight-step setup and workflow guide for building MVPs with Cursor (Tip, Free)
- [Animated Loading Button in SwiftUI](https://xiry.app/resources/animated-loading-button-in-swiftui): Pattern for building a multi-state morphing button in SwiftUI (Tip, Free)
- [Chat UI Architecture on iOS: SwiftUI List to UICollectionView](https://xiry.app/resources/chat-ui-architecture-on-ios-swiftui-list-to-uicollectionview): Engineering guide for building high-performance, streaming-friendly iOS chat message lists. (Tip, Free)
- [clean-architecture-swiftui](https://xiry.app/resources/clean-architecture-swiftui): Sample SwiftUI app demonstrating Clean Architecture with modern Swift patterns (GitHub repo, Open source)
- [Cursor Agent Best Practices](https://xiry.app/resources/cursor-agent-best-practices): Practical rules and workflows for getting reliable code from Cursor agents (Tip, Free)

Updated 11 October 2026. Page: https://xiry.app/resources/add-apple-docs-to-cursor-composer

Make your own library: Xiry takes your saved reels, tweets, Reddit bookmarks and Watch Later videos, makes them searchable and pulls the useful stuff out, like this library. It's invite-only for now; join the waitlist at https://xiry.app/#waitlist.
