Installation

This guide will help you install and configure Aug in your visionOS project.

System Requirements

  • macOS 14.0 or later
  • Xcode 15.0 or later
  • visionOS 1.0 SDK or later
  • Swift 6.0 or later
  • Swift Package Manager

    Add Aug to your project via Swift Package Manager:

    swift
    1dependencies: [
    2    .package(url: "https://github.com/augmentedruntime/aug.git", from: "1.0.0")
    3]

    Configuration

    Import Aug in your app's entry point:

    swift
    1import SwiftUI
    2import Aug
    3
    4@main
    5struct MyApp: App {
    6    var body: some Scene {
    7        WindowGroup {
    8            ContentView()
    9        }
    10        .augRuntime() // Enable Aug runtime
    11    }
    12}

    Verify Installation

    Create a simple test view to verify Aug is working:

    swift
    1import Aug
    2
    3struct TestView: View {
    4    var body: some View {
    5        AugmentedSpace {
    6            Text("Aug is installed!")
    7                .font(.extraLargeTitle)
    8        }
    9    }
    10}

    Build and run your app. You should see the text displayed in your spatial environment.

    Aug | AI-Powered Spatial Computing for iOS & visionOS