mirror of
https://github.com/pointfreeco/swift-composable-architecture.git
synced 2025-12-20 09:11:33 +01:00
28 lines
731 B
Swift
28 lines
731 B
Swift
import SwiftUI
|
|
import UIKit
|
|
|
|
class SceneDelegate: UIResponder, UIWindowSceneDelegate {
|
|
var window: UIWindow?
|
|
|
|
func scene(
|
|
_ scene: UIScene,
|
|
willConnectTo session: UISceneSession,
|
|
options connectionOptions: UIScene.ConnectionOptions
|
|
) {
|
|
self.window = (scene as? UIWindowScene).map(UIWindow.init(windowScene:))
|
|
self.window?.rootViewController = UINavigationController(
|
|
rootViewController: RootViewController())
|
|
self.window?.makeKeyAndVisible()
|
|
}
|
|
}
|
|
|
|
@UIApplicationMain
|
|
class AppDelegate: UIResponder, UIApplicationDelegate {
|
|
func application(
|
|
_ application: UIApplication,
|
|
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
|
|
) -> Bool {
|
|
true
|
|
}
|
|
}
|