mirror of
https://github.com/ivanvorobei/SwiftUI.git
synced 2026-03-30 14:12:31 +02:00
Update
This commit is contained in:
24
Other Projects/SwiftUI + Redux/SwiftUIDemo/SceneDelegate.swift
Executable file
24
Other Projects/SwiftUI + Redux/SwiftUIDemo/SceneDelegate.swift
Executable file
@@ -0,0 +1,24 @@
|
||||
//
|
||||
// SceneDelegate.swift
|
||||
// SwiftUIDemo
|
||||
//
|
||||
// Created by Thomas Ricouard on 04/06/2019.
|
||||
// Copyright © 2019 Thomas Ricouarf. All rights reserved.
|
||||
//
|
||||
|
||||
import UIKit
|
||||
import SwiftUI
|
||||
|
||||
class SceneDelegate: UIResponder, UIWindowSceneDelegate {
|
||||
|
||||
var window: UIWindow?
|
||||
|
||||
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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user