Files
CrossSound-Swift/Apps/iOS/Sources/CrossSoundApp.swift
RedLintu16andClaude Opus 5.5 64ec524ba0 CrossSound for Apple platforms
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-14 13:28:34 -07:00

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")
}
}
}