I wanna make some app on macOS using SwfitUI.
Following the iOS, there is SceneDelegate (after iOS 13). But in macOS, there is only AppDelegate.
OK. I wanna use environmentObject on SceneDelegate's scene method
window.rootViewController = UIHostingController(rootView: contentView .environmentObject(mainController) ) to use @EnvironmentObject property wrapper in my ContentView.
Literally I can't implement .environmentObject() cuz in macOS there is no SceneDelegate!
How can I solve this problem?