0

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 ?

nelson PARRILLA
  • 498
  • 1
  • 6
  • 17

1 Answers1

1

Delete the info.plist scene manifest part, except for enable multiple windows.

Chris Wood
  • 306
  • 3
  • 13