This repository was archived by the owner on Feb 21, 2026. It is now read-only.
Repository navigation
Raven 0.10.2: Asset Catalogs (.xcassets) + Custom Symbols (.symbolset)
Highlights
- First-class Xcode Asset Catalog (
.xcassets) support in Raven’s CLI + runtime. - Loads assets by name at runtime:
Image("Name")(imagesets withsrcset)Color("Name")(colorsets via injected CSS variables, including light/dark)Asset.url("Name")/Asset.fetchData("Name")(datasets)
- Supports custom symbol assets from Xcode Symbol Image Sets (
.symbolset), rendered tintably (inheritscurrentColor).
What’s New
Asset Catalog Compilation (CLI)
- Discovers and compiles
*.xcassetsfrom:- The app package under
Sources/** - SwiftPM dependency checkouts (via
.build/workspace-state.jsonand.build/checkouts/**/Sources/**)
- The app package under
- Emits a manifest and injects it into served/generated HTML so assets resolve before
main()runs. - Deterministic asset IDs shared between CLI and runtime (
RavenAssetSupport).
Dev + Build Integration
raven devwatches.xcassetschanges (including dependency catalogs) and rebuilds.raven buildproduces a self-containeddist/with compiled assets under/assets/and the manifest injected intoindex.html.
Runtime APIs
Image("...")resolves via the injected manifest when available; falls back to/assets/<name>for compatibility.Color("...")resolves through injected CSS variables.- New
Assethelper for datasets.
Demo
Examples/TodoApp includes a ready-to-run asset catalog demo:
RavenMark.imageset(README raven mark)BrandPrimary.colorset(light/dark)SampleText.datasetRavenCustom.symbolsetandgit.*.symbolset
Run it:
Raven % swiftly run swift run raven dev --input Examples/TodoAppNotes
- Image assets are copied as-is (no transcoding/optimization in this release).
- Package swift settings were cleaned up to avoid flags that break Xcode builds.