Skip to main content

Quickstart

Pick your path. Both take under 15 minutes.
Build a notes app with PrismArchitecture (state management), PrismUI (components), and PrismStorage (persistence).
Requires Swift 6.3+, Xcode 16.4+, iOS 26+. See Installation for details.

Create Your Project

1

Initialize a Swift package

2

Add Prism to Package.swift

Package.swift
import Prism gives you PrismUI, PrismArchitecture, PrismNetwork, PrismStorage, and more.
3

Build

Define Your Feature

Prism uses the reducer pattern — state is a struct, changes happen through actions, side effects return via PrismEffect.
NotesFeature.swift
The reducer is pure — all async work (storage, network) happens in effects. This makes state changes predictable and testable.

Build the UI

PrismUI provides ready-made components with design tokens and theming.
NotesView.swift

Wire It Up

NotesApp.swift

Run It

Or open in Xcode: open Package.swift

What You Used

Next Steps — Client

Add Networking

Sync notes to a remote API with type-safe endpoints and retry policies.

Middleware

Add logging, analytics, or undo/redo middleware to your store.

More Components

Explore cards, chips, charts, forms, and 100+ more SwiftUI components.

Encrypted Storage

Wrap your store with AES-GCM encryption for sensitive data.