Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
22 lines
809 B
Swift
Executable File
22 lines
809 B
Swift
Executable File
import CrossSoundUI
|
|
import SwiftUI
|
|
|
|
@main
|
|
struct CrossSoundApp: App {
|
|
/// A real UIApplicationDelegate for the launch-time watch link (see
|
|
/// AppDelegate.swift).
|
|
@UIApplicationDelegateAdaptor(AppDelegate.self) private var appDelegate
|
|
|
|
var body: some Scene {
|
|
WindowGroup {
|
|
// CrossSoundScene, not AppRoot + a bare .rwTheme(): the scene root owns
|
|
// the user's RwAppearanceController (persisted under the "appearance"
|
|
// pref) and applies .rwTheme(appearance.value) ABOVE AppRoot, which is
|
|
// the only place it can go — AppRoot reads \.rw itself, and a view never
|
|
// sees environment its own body installs. Themes/dark-mode edits from
|
|
// anywhere in the app re-theme everything through that one modifier.
|
|
CrossSoundScene(platformName: "iOS")
|
|
}
|
|
}
|
|
}
|