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 distributed exclusively as a Swift package. You add it through Swift Package Manager, either from Xcode’s package dependency UI or by editing Package.swift directly. You can import the full Prism umbrella or pull in only the modules your target actually needs.
Import the Prism umbrella target to get all seven modules in one step. This is the fastest way to get started and is appropriate for app targets that use features from multiple modules.1. Declare the dependency in Package.swift:
// Package.swift
dependencies: [
    .package(url: "https://github.com/rafaelesantos/prism.git", from: "1.0.0")
],
targets: [
    .target(
        name: "YourApp",
        dependencies: [
            .product(name: "Prism", package: "prism")
        ]
    )
]
2. Import at the top of any Swift file:
import Prism          // re-exports all modules
The Prism target uses @_exported import to re-export PrismFoundation, PrismNetwork, PrismArchitecture, PrismUI, PrismVideo, and PrismIntelligence. A single import Prism line makes the full public API available.
Importing individual modules rather than the Prism umbrella reduces incremental build times and keeps your target’s dependency surface explicit. It’s especially useful for framework or library targets that you distribute to other apps.

Platform and Swift requirements

Prism’s deployment targets are set to the latest OS generation so that PrismUI can use recent SwiftUI APIs without availability guards.
RequirementMinimum version
Swift6.3
Xcode16.4
iOS26
macOS26
Mac Catalyst26
tvOS26
watchOS26
visionOS26

Add via Xcode

If you prefer Xcode’s graphical package manager:
  1. Open your project in Xcode.
  2. Go to File → Add Package Dependencies.
  3. Paste https://github.com/rafaelesantos/prism.git into the search field.
  4. Choose a version rule (use Up to Next Major Version from 1.0.0).
  5. Select the products you want to add and click Add Package.