import UIKit @main final class AppDelegate: UIResponder, UIApplicationDelegate { func application(_ application: UIApplication, didFinishLaunchingWithOptions options: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { true } /// Scenes, not a window on the delegate: iOS 27 refuses to run an app that has not adopted the /// scene lifecycle at all. It is also what CarPlay needs -- a CarPlay app is a second scene /// alongside this one, matched here by its role -- so there is nothing to undo later. func application(_ application: UIApplication, configurationForConnecting session: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { UISceneConfiguration(name: "Default Configuration", sessionRole: session.role) } }