Goodbye SceneDelegate, what to do now?

Hi Devs, I'm new to coding and studying with an old course on Xcode 11. When building the application, a variable with its declaration is inserted in a line of the SceneDelegate file (let contentView = ) which however no longer exists. How is it resolved? I couldn't go on anymore. Thank you all.

Don't use a tutorial for Xcode 11 and use Xcode 14. You will have a lot of trouble.

Effectively, there is no more SceneDelegate.

But your appFile should look like

import SwiftUI

@main
struct MyApp: App {
    var body: some Scene {
        WindowGroup {
            ContentView()
        }
    }
}

Thanks for your answer. Now I'm coding and I'm looking for a solution to adapt old app in the course to Xcode 14. For training. 😀

SO it works now ? If so, don't forget to close the thread by marking the correct answer. Otherwise, please explain the problem.

> I'm looking for a solution to adapt old app in the course to Xcode 14. For training.

Open a new thread for this and explain the problems you face. Good continuation.

Yes, now it works. Thanks!

Goodbye SceneDelegate, what to do now?
 
 
Q