Updated for Xcode 11 Beta3

This commit is contained in:
John Holdsworth
2019-07-08 11:08:29 +01:00
parent 03ac6281a1
commit 17a2f3b196
35 changed files with 207 additions and 88 deletions

View File

@@ -15,10 +15,12 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
let window = UIWindow(frame: UIScreen.main.bounds)
window.rootViewController = UIHostingController(rootView: TabbarView().environmentObject(store))
self.window = window
window.makeKeyAndVisible()
if let windowScene = scene as? UIWindowScene {
let window = UIWindow(windowScene: windowScene)
window.rootViewController = UIHostingController(rootView: TabbarView().environmentObject(store))
self.window = window
window.makeKeyAndVisible()
}
}
}