Files
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

20 lines
716 B
Swift
Executable File

// AppDelegate — the UIKit delegate behind the SwiftUI @main app, for the one
// launch-time job SwiftUI has no scene-level hook for: answering the watch.
import CrossSoundKit
import UIKit
@MainActor
final class AppDelegate: NSObject, UIApplicationDelegate {
func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil
) -> Bool {
// The watch's "Sign in" (and its token refreshes) wake this app in the
// background with no screen — so no AppRoot to start the link. Activating
// the session here lets those requests be answered from the keychain.
WatchLink.shared.activateEarly()
return true
}
}