Skip to main content

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.

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.

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.
┌─────────────────────────────────────────────────┐
│                    Prism                        │  ← umbrella re-export
├──────────┬──────────┬───────────┬───────────────┤
│ PrismUI  │PrismVideo│PrismIntel.│PrismArchitect.│  ← feature modules
├──────────┴──────────┴───────────┴───────────────┤
│                PrismNetwork                     │  ← transport layer
├─────────────────────────────────────────────────┤
│               PrismFoundation                   │  ← zero-dep core
└─────────────────────────────────────────────────┘
ModuleRole
PrismFoundationEntities, logging, analytics, locale, resources, defaults, formatting
PrismNetworkHTTP client, WebSocket transport, typed endpoints, caching, FIX protocol
PrismArchitectureRouter, store, reducer, middleware — unidirectional data flow
PrismUIToken-driven design system — 80+ components, 4 themes, Apple HIG
PrismVideoVideo download helpers and media entities
PrismIntelligenceCreateML training, CoreML inference, Apple Intelligence, remote LLM
PrismUmbrella — 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.
RequirementMinimum version
Swift6.3
Xcode16.4
iOS26
macOS26
Mac Catalyst26
tvOS26
watchOS26
visionOS26

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.