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 that gives you everything you need to build high-quality Apple-platform apps. It ships seven focused modules — from a token-driven SwiftUI design system and type-safe networking layer, to a unidirectional-state architecture and on-device machine-learning client — all under a single import Prism umbrella.

Quick Start

Add Prism to your project and build your first screen in minutes.

Installation

Configure Package.swift to use the full package or individual modules.

Modules Overview

Explore all seven modules and decide which ones your app needs.

Design System

Tokens, themes, and 80+ SwiftUI components built on Apple HIG.

State Management

Unidirectional data flow with PrismStore, reducers, and effects.

On-Device Intelligence

Train and run CoreML models — or connect to a remote LLM.

What’s inside

1

Add the package

Add https://github.com/rafaelesantos/prism.git to your Package.swift dependencies and choose the modules you need.
2

Apply a theme

Call .prismTheme(DefaultTheme()) on your root view to activate the design system.
3

Build with components

Drop in PrismButton, PrismTextField, PrismCard, and 80+ other components — all theme-aware and accessible out of the box.
4

Add architecture and networking

Wire up PrismStore for state management and define PrismNetworkEndpoint types for your API calls.
Prism requires Swift 6.3 and Xcode 16.4+. Minimum deployment targets are iOS 26, macOS 26, tvOS 26, watchOS 26, and visionOS 26.