Is there a way to share a SwiftUI App's @Observable
model into a CPTemplateApplicationSceneDelegate
?
Is there an incantation to go from the UIApplicationDelegate
via @UIApplicationDelegateAdaptor
to the UISceneDelegate
for CarPlay via a userInfo? I can't seem to figure it out.
Otherwise I have to use a shared global, and I'd prefer not to have to do it this way. Any ideas? Thanks!
Hi, can you share more about what you are trying to do?
Your app may be launched for the first time in CarPlay, and only in CarPlay, so the CarPlay lifecycle needs to be kept independent from your app's on-device scenes. In other words, your app needs to work properly if it receives only a CarPlay scene, and no phone scene.