scroll # the-forge-universal.fid > The Forge runseverywhere the Sacred Architect does. ##Pattern The Forge is a **universal SwiftUIvessel** — macOS, iOS, and future visionOS.98% of the codebase is pure SwiftUI(`NavigationSplitView`, `.inspector`,`.searchable`, `SceneKit`). Only ~25 linesrequire `#if os()` guards. ## Platform ColorSceneKit uses platform-specific color types. Asingle typealias bridges them: ```swift #ifos(macOS) typealias PlatformColor = NSColor#else typealias PlatformColor = UIColor #endif``` All SceneKit geometry, cameras, lights,and `SceneView` are universal — no otherchanges needed. ## Portal Host Selection ThePortalVessel pachinko cascade handlesconnectivity: | Platform | Host | Rationale ||----------|------|-----------| | macOS |`localhost:3333` | Portal runs locally via pm2| | iOS | `portal.hex-os.dev` | Cloudflaretunnel to the same Portal | If the host isunreachable, PortalVessel falls back to**Forest mode** automatically. ##NavigationSplitView Adaptation SwiftUI handleslayout automatically: - **Mac / iPadlandscape** → three-column split (sidebar +content + detail) - **iPhone / iPad compact**→ navigation stack with push/pop -`.inspector()` → sheet on compact sizeclasses ## macOS-Only Features Wrapped in `#ifos(macOS)`: - `AppDelegate` (file openhandler) - `NSOpenPanel` (Cmd+O menu item) -`NSWorkspace.shared.open()` /`.activateFileViewerSelecting()` -`.onDrop(of:)` from Finder - Home directorypath for local scroll storage ## DeploymentTargets - macOS 13+ (Ventura) - iOS 17+(needed for `.inspector()` and`.searchable()`) - HexCore SPM package alreadydeclares both platforms