我试着追随
让window = UIWindow(frame: UIScreen.main.bounds) window.rootViewController = UIHostingController(rootView: ContentView()) self.window = window window
相反,
guard let _ = (scene as? UIWindowScene) else { return }
还将Main Interface设置为Storyboard和入口点。
问题:启动启动屏幕
后出现黑屏
https://stackoverflow.com/questions/56863768
复制相似问题