Foundation is Apple’s “base layer” framework — it provides date/time handling,
URL parsing, JSON encoding, data buffers, and more. tswift measures Foundation
coverage through generated .swiftinterface inventories and per-type runtime
registries.
Legend: ✅ Done · 🟡 Partial · ⬜ Todo
Overall coverage
Foundation17% (2/12)
How coverage is measured
Foundation coverage is tracked via the framework inventory tool
(tools/stdlib-inventory/). It generates a snapshot of every public type and
member in the real Apple Foundation .swiftinterface, then compares it against
the runtime’s native registry. See docs/swift-runtime/stdlib-inventory.md.
Type status
flowchart TD
done["✅ Implemented"]
partial["🟡 Partial"]
todo["⬜ Todo"]
done --> Data["Data\ncore constructors + properties"]
done --> UUID["UUID\nuuidString, init, random"]
partial --> IndexSet["IndexSet / IndexPath\nF1 – constructors only"]
todo --> URL["URL / URLComponents\nF2 – todo"]
todo --> Date["Date / DateFormatter\ntodo"]
todo --> JSON["JSONEncoder / JSONDecoder\ntodo"]
todo --> Notification["NotificationCenter\ntodo"]
todo --> UserDef["UserDefaults\ntodo"]
todo --> FileMan["FileManager\ntodo"]
todo --> Measure["Measurement / Unit\ntodo"]
todo --> Locale["Locale / Calendar\ntodo"]
todo --> CharSet["CharacterSet\ntodo"]
style done fill:#1e3a2a,stroke:#6ddf9f,color:#eeeef5
style partial fill:#2a2512,stroke:#f5d06e,color:#eeeef5
style todo fill:#1e1e27,stroke:#444455,color:#8888a0