Clean-room, Linux-buildable reimplementations of Apple frameworks, written
from the specifications in specs/frameworks/<name>/ under the protocol in
AGENTS.md (this directory is part of the clean room).
| Directory | Package | Library module | Spec |
|---|---|---|---|
eventkit/ |
ycode-eventkit |
EventKit (+ CLLocation shim on Linux) |
specs/frameworks/eventkit/ (rounds R2–R4) |
weatherkit/ |
ycode-weatherkit |
WeatherKit (+ CoreLocation shim on Linux) |
specs/frameworks/weatherkit/ (R2–R4) |
swiftui/ |
ycode-swiftui |
SwiftUI (re-exports SwiftUICore); built as OpenViews / OpenViewsCore on Apple hosts |
specs/frameworks/swiftui/ (R1, R2, R3 core, R4, R6, R7); bundles Noto Sans (OFL 1.1); vendors SDL 3.4.18 headers (zlib) and opens libSDL3 at run time |
healthkit/ |
ycode-healthkit |
HealthKit |
specs/frameworks/healthkit/ (rounds R2–R5, and R10's query descriptors) |
contacts/ |
ycode-contacts |
Contacts |
specs/frameworks/contacts/ (rounds R2–R5) |
homekit/ |
ycode-homekit |
HomeKit (+ CoreLocation region shim on Linux) |
specs/frameworks/homekit/ (round R3) |
storekit/ |
ycode-storekit |
StoreKit, StoreKitTest (+ StoreKitConfiguration, StoreKitEngine, StoreKitSigning) |
specs/frameworks/storekit/ (rounds R2, R7–R9) |
usd/ |
ycode-usd |
USDCore, USDStage, USDShade (not an Apple framework: a Swift-native USD/MaterialX library shared by the Scene Composer and, later, RealityKit) |
public OpenUSD/MaterialX sources; specs/tools/scene-composer/ycode-design.md |
The round numbers name the rounds of each spec's plan (plan.md, or
10-plan.md for SwiftUI) that are done.
Each package README lists what is done, deferred and not started.
ARKit, MapKit and RealityKit have specifications in specs/frameworks/ but
no package yet.
Conventions:
- One Swift package per framework:
frameworks/<name>/Package.swift, package nameycode-<name>. The library module may use the Apple framework's module name (an interop identifier) so existing source compiles against it. - Swift 6.4 toolchain; must build and test on macOS and on Linux (x86-64 and arm64). Dependencies must be permissively licensed (MIT, BSD, Apache-2.0, zlib, ISC, or similar) and pinned to exact released versions; record each one and its licence in the package README.
- Tests carry the golden values from the spec (the spec's conformance tests); a test names the spec section it checks.
- No Apple code, resources, documentation text or SDK declarations. Public type and member names come from the spec's API inventory.
- On macOS a package must not shadow the system framework for other targets:
keep each package self-contained and test it in its own build
(
cd frameworks/<name> && swift build && swift test). ycode/scripts/lint.shlints these packages with the repository's.swiftlint.yml.