I have migrated my App to the SwiftUI App protocol.
I also want to use AppDelegate ans SceneDelegate by adding this code in appdelegate:
func application( _ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions ) -> UISceneConfiguration { let sceneConfig = UISceneConfiguration(name: nil, sessionRole: connectingSceneSession.role) sceneConfig.delegateClass = FSSceneDelegate.self // 👈🏻 return sceneConfig } The problem is that if I update my app, this function is not called. I have to uninstall the app and reinstall it to get this function called.
Is there another way to set the UISceneConfiguration outside this function ?