get_sample_code
Retrieve complete Apple sample projects and working examples that show implementation patterns and recommended practices. Use it to learn by example when code snippets aren't enough.
Instructions
Browse complete sample projects from Apple. Full working examples demonstrating best practices and implementation patterns. Different from search_apple_docs which returns code snippets. Use for learning by example.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| beta | No | Beta samples: "include" = all, "exclude" = stable only, "only" = beta only. Default: "include" | |
| limit | No | Max results (default: 50). | |
| framework | No | Framework filter (case-insensitive). Examples: "SwiftUI", "ARKit", "CoreML". Note: Some samples are under generic categories - use searchQuery for better results. | |
| searchQuery | No | Search keywords. Most effective approach. Examples: "animation", "camera", "machine learning", "widgets". |