Skip to main content
196

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Apple docs
LumenUI

Apple Installation

Check requirements, install the package, and configure your first native screen. Learn how with Lumen for Apple / SwiftUI.

Get started

Install and configure

LumenUI installs through Swift Package Manager; no npm package, CocoaPod, or copied source is required. Add the repository URL, pin exact version 4.0.0 for reproducible builds, and attach the LumenUI product to your application target.

Before you begin

What you need

  • macOS with Xcode 16 or newer and the SDK for the Apple platform you target
  • An existing SwiftUI application targeting a supported Apple platform
  • An Apple Developer account only for physical-device or TestFlight distribution
  1. Add the Swift package

    In Xcode, choose File → Add Package Dependencies, paste the repository URL, and pin exact version 4.0.0 for reproducible builds. Use a compatible-version rule only when the application accepts compatible updates.

  2. Link LumenUI to the target

    Select the LumenUI library product and attach it to the application target that renders your SwiftUI views.

  3. Import, theme, and run

    Import LumenUI, wrap the root surface in lumenTheme, select a simulator, and press Run.

bash
# Xcode → File → Add Package Dependencies…
https://github.com/santi020k/lumen

# Dependency Rule
Exact Version: 4.0.0

# Add this product to your application target
LumenUI
Apple docsSwiftUI package