Rename to rossler\\attix
This commit is contained in:
28
App/SceneDelegate.swift
Normal file
28
App/SceneDelegate.swift
Normal file
@@ -0,0 +1,28 @@
|
||||
//
|
||||
// SceneDelegate.swift
|
||||
// SBrowser
|
||||
//
|
||||
// Created by James Magahern on 7/21/20.
|
||||
//
|
||||
|
||||
import UIKit
|
||||
|
||||
class SceneDelegate: UIResponder, UIWindowSceneDelegate {
|
||||
var window: UIWindow?
|
||||
let navigationController = UINavigationController()
|
||||
let browserViewController = BrowserViewController()
|
||||
|
||||
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions)
|
||||
{
|
||||
guard let windowScene = (scene as? UIWindowScene) else { return }
|
||||
|
||||
navigationController.viewControllers = [ browserViewController ]
|
||||
navigationController.setNavigationBarHidden(true, animated: false)
|
||||
|
||||
let window = UIWindow(windowScene: windowScene)
|
||||
window.rootViewController = navigationController
|
||||
window.makeKeyAndVisible()
|
||||
self.window = window
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user