Prism ships as a Swift package with seven independent modules that you can import individually or all at once. Each module has a clearly defined responsibility—from zero-dependency utilities at the bottom to rich UI components and on-device intelligence at the top. You can adopt only the layers your app needs, keeping binary size and compile times under control.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 dependency diagram
PrismFoundation sits at the base and has no dependencies on other Prism modules. PrismNetwork builds on top of it. The four feature modules—PrismUI, PrismVideo, PrismIntelligence, and PrismArchitecture—each depend on PrismNetwork and/or PrismFoundation. The Prism umbrella target re-exports everything.
Module reference
| Module | Role | Import |
|---|---|---|
PrismFoundation | Entities, logging, analytics, locale, resources, defaults, formatting | import PrismFoundation |
PrismNetwork | HTTP client, caching, retry, GraphQL, multipart upload, offline queue | import PrismNetwork |
PrismArchitecture | Unidirectional data flow — store, reducer, effects, middleware, router | import PrismArchitecture |
PrismUI | Token-driven design system — 80+ components, 4 themes, Apple HIG | import PrismUI |
PrismVideo | Video download helpers and media entities | import PrismVideo |
PrismIntelligence | CreateML training, CoreML inference, Apple Intelligence, remote LLM | import PrismIntelligence |
Prism | Umbrella — re-exports all modules above | import Prism |
Modules at a glance
PrismFoundation
Zero-dependency core types: entities, logging, analytics protocol, locale management, user defaults, date formatting, error protocol, bundle helpers, and file management.
PrismNetwork
Type-safe HTTP endpoints, actor-based LRU cache, exponential and linear retry policies, GraphQL client, multipart upload, request deduplication, and offline queue.
PrismArchitecture
Unidirectional data flow with
PrismStore, PrismReducer, PrismEffect, and PrismMiddleware. Includes type-safe navigation via PrismRouter and state persistence.PrismUI
Token-driven design system with 80+ SwiftUI components, four built-in themes, full accessibility support, and reduce-motion-aware animations.
PrismVideo
Download videos from remote URLs with real-time progress streaming via
AsyncStream. Includes typed resolution and error enumerations.PrismIntelligence
Train models from any
Codable type, run on-device Core ML inference, call Apple Intelligence, or integrate a remote LLM—through one unified client.Installation
Add Prism as a Swift package dependency, then choose the modules you need in your target’s dependencies list.Prism requires Swift 6.3, Xcode 16.4+, and targets iOS 26, macOS 26, tvOS 26, watchOS 26, or visionOS 26.