You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
719 B
26 lines
719 B
//
|
|
// 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) {
|
|
|
|
if let windowScene = scene as? UIWindowScene {
|
|
let window = UIWindow(windowScene: windowScene)
|
|
window.rootViewController = UIHostingController(rootView: TabbarView().environmentObject(store))
|
|
self.window = window
|
|
window.makeKeyAndVisible()
|
|
}
|
|
}
|
|
}
|
|
|
|
|