Hi, I created a new project with Xcode 12 beta on Big Sur beta. I changed the code in the @main-wrapper to this:
	@Environment(\.scenePhase) private var scenePhase
var body: some Scene {
WindowGroup {
ContentView()
}
.onChange(of: scenePhase) { (newScenePhase) in
print(newScenePhase)
}
}
If I start the application (either macOS or iOS), nothing happens, nothing will be printed in the onChange. Do I miss something?
10
0
6.5k