35971d4acc
Two thin app shells hosting ShoeGazeBuilderView: - macOS (AppKit): seeds one board with an Overdrive; anchors the window ~100px from the left of the visible screen and sizes it to most of the screen height via LyrebirdWindow.nsWindow. - iOS (SwiftUI): NavigationStack hosting the builder; AVAudioSession + iOSAudioDriver; logs session-activation failures. Both .xcodeproj reference the local package (..) + the remote Lyrebird package, with fresh hex object-id prefixes; added to ShoeGaze.xcworkspace. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
24 lines
732 B
Swift
24 lines
732 B
Swift
// main.swift
|
|
// Lyrebird
|
|
//
|
|
// Copyright (c) 2026 Joshua Parmenter / realizedsound
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
#if os(macOS)
|
|
import AppKit
|
|
|
|
// Program entry runs on the main thread; assert main-actor isolation for the AppKit bootstrap
|
|
// rather than hopping asynchronously. `AppDelegate.init` builds `@MainActor` synthesizers and UI.
|
|
MainActor.assumeIsolated {
|
|
let app: NSApplication = NSApplication.shared
|
|
let delegate: AppDelegate = AppDelegate()
|
|
app.setActivationPolicy(.regular)
|
|
app.delegate = delegate
|
|
app.activate(ignoringOtherApps: true)
|
|
app.run()
|
|
}
|
|
#else
|
|
// The ShoeGaze Builder is a macOS AppKit application and has no iOS entry point here.
|
|
print("ShoeGazeBuilder runs on macOS only.")
|
|
#endif
|