Prism is a modular Swift package for building production-quality Apple-platform apps. Rather than a monolithic framework, it ships as seven focused modules that you can adopt individually or together. Whether you need a token-driven SwiftUI design system, a type-safe HTTP layer, a unidirectional state architecture, or on-device machine-learning inference, Prism provides each capability as a clean, dependency-minimal target.Documentation Index
Fetch the complete documentation index at: https://docs.prism.byescaleira.com/llms.txt
Use this file to discover all available pages before exploring further.
Module architecture
All seven modules sit in a layered dependency graph.PrismFoundation is the zero-dependency core that every other module builds on. PrismUI pulls in both PrismFoundation and PrismArchitecture. The Prism umbrella target re-exports everything with a single import.
| Module | Role |
|---|---|
PrismFoundation | Entities, logging, analytics, locale, resources, defaults, formatting |
PrismNetwork | HTTP client, WebSocket transport, typed endpoints, caching, FIX protocol |
PrismArchitecture | Router, store, reducer, middleware — unidirectional data flow |
PrismUI | Token-driven design system — 80+ components, 4 themes, Apple HIG |
PrismVideo | Video download helpers and media entities |
PrismIntelligence | CreateML training, CoreML inference, Apple Intelligence, remote LLM |
Prism | Umbrella — import Prism gives you everything |
Platforms and requirements
Prism targets the latest generation of Apple SDKs to take full advantage of recent SwiftUI and Swift Concurrency capabilities.| Requirement | Minimum version |
|---|---|
| Swift | 6.3 |
| Xcode | 16.4 |
| iOS | 26 |
| macOS | 26 |
| Mac Catalyst | 26 |
| tvOS | 26 |
| watchOS | 26 |
| visionOS | 26 |
Key features
Strict concurrency. Every public API is annotated for Swift 6 strict concurrency —Sendable, @MainActor, and actor isolation are enforced throughout. You get compile-time safety for async code without runtime surprises.
Token-driven design. PrismUI uses six semantic token types (color, typography, spacing, radius, elevation, motion) to drive every visual decision. Swap themes at runtime without changing a single component call site.
Accessibility by default. Components meet Apple HIG guidelines, support Dynamic Type and VoiceOver, respect the accessibilityReduceMotion environment, and ship with WCAG contrast-ratio validation via PrismAccessibilityTest.
DocC on every public API. Every public symbol has DocC documentation with examples. Run make docs-serve to browse the full reference locally.
788 tests across 149 suites. The test suite covers unit, integration, snapshot, and architecture tests. PrismTestStore gives you synchronous assertions over state mutations in PrismArchitecture.
Explore
Quickstart
Add Prism to your project and build your first themed screen in five minutes.
Modules overview
Detailed breakdown of every module, its public API surface, and when to use it.
Design system
Tokens, themes, and 80+ SwiftUI components — all built on Apple HIG.
State management
Unidirectional data flow with
PrismStore, reducers, middleware, and effects.