| 1 | // |
| 2 | // SceneDelegate.swift |
| 3 | // JomloCollectionView Example |
| 4 | // |
| 5 | // Created by Seto Elkahfi on 2026-01-27. |
| 6 | // Copyright © 2026 Seto Elkahfi. All rights reserved. |
| 7 | // |
| 8 | |
| 9 | import UIKit |
| 10 | |
| 11 | class SceneDelegate: UIResponder, UIWindowSceneDelegate { |
| 12 | |
| 13 | var window: UIWindow? |
| 14 | |
| 15 | func scene( |
| 16 | _ scene: UIScene, |
| 17 | willConnectTo session: UISceneSession, |
| 18 | options connectionOptions: UIScene.ConnectionOptions |
| 19 | ) { |
| 20 | guard let windowScene = scene as? UIWindowScene else { return } |
| 21 | let window = UIWindow(windowScene: windowScene) |
| 22 | let homeVC = StreamingHomeViewController() |
| 23 | let nav = UINavigationController(rootViewController: homeVC) |
| 24 | nav.navigationBar.prefersLargeTitles = true |
| 25 | window.rootViewController = nav |
| 26 | window.makeKeyAndVisible() |
| 27 | self.window = window |
| 28 | } |
| 29 | } |