Files
SwiftUI/Other Projects/Flux/SwiftUI-Flux/SceneDelegate.swift
Ivan Vorobei 48001a8e9a Update
2019-06-26 22:12:35 +03:00

14 lines
460 B
Swift
Executable File

import UIKit
import SwiftUI
final 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: CounterView())
self.window = window
window.makeKeyAndVisible()
}
}