Files
Vespass/VespassiOS/SceneDelegate.swift
Nalin Bhardwaj 83781c6fa1 secrets refactor
working demo
2023-01-18 03:06:16 -08:00

27 lines
741 B
Swift

//
// SceneDelegate.swift
// Vespass
//
// Created by Nalin Bhardwaj on 23/12/22.
// Copyright © 2022 Vespass. All rights reserved.
//
// The scene delegate for iOS.
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: ContentView().environmentObject(try! Backend()))
self.window = window
window.makeKeyAndVisible()
}
}
}