About this study
This independent educational project examines the architecture of downloadable Apple sample-code projects. It is not official Apple documentation and is not an Apple-endorsed project.
Explore samples · Patterns · Frameworks
Scope and method
The completed documentation snapshot was collected on 2026-07-21. It contains one Markdown analysis for each verified Apple sample-code page. Framework and category folders use Apple’s human-readable documentation names; historical capitalization and spacing aliases share one folder.
Source projects are downloaded from Apple, checksum-verified, safely extracted, and indexed before analysis. AVFoundation was analyzed first, and the same evidence contract is applied to every remaining framework and category. A published claim must be supported by the downloaded source, its project metadata, or official Apple documentation. Observed facts and architectural interpretation remain separate, and a named pattern is omitted when the source does not support it.
Each sample analysis focuses on:
- overall application architecture and project structure;
- object, state, mutation, and lifetime ownership;
- class, protocol, and framework-boundary responsibilities;
- access-control choices and their effective scope;
- logic placement, naming conventions, and folder organization;
- execution context, synchronization, state propagation, and dependencies when the source exposes them; and
- concise Mermaid diagrams with structurally complete reference excerpts.
The reusable document contract is in _analysis/TEMPLATE.md.
Ownership, licenses, and publication boundary
Apple sample code, documentation, names, and trademarks remain the property of Apple or their applicable rights holders and are governed by their original terms, including the Apple Sample Code License. The analyses and site tooling are original project material. ShawnBaek/SwiftUI-For-Web is included at a pinned commit under its MIT license.
The generated viewer publishes only complete text files explicitly cited by a sample’s Source Map. It preserves bundled license notices and links to Apple’s license. Complete source archives and extracted source trees are not published.
Repository policy
The study is maintained in the private ShawnBaek/AppleSampleCode repository. Published Markdown, catalog metadata, validation tooling, and generated-site source are tracked. Apple archives, extracted source trees, and local crawler state remain excluded from Git and are never published to GitHub.