main
swift 26 lines 799 Bytes
Raw
1 import UIKit
2
3 @main
4 final class AppDelegate: UIResponder, UIApplicationDelegate {
5
6 func application(
7 _ application: UIApplication,
8 didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
9 ) -> Bool {
10 OndeEnvironmentBootstrap.configureIfNeeded()
11 return true
12 }
13
14 func application(
15 _ application: UIApplication,
16 configurationForConnecting connectingSceneSession: UISceneSession,
17 options: UIScene.ConnectionOptions
18 ) -> UISceneConfiguration {
19 let configuration = UISceneConfiguration(
20 name: SceneDelegate.configurationName,
21 sessionRole: connectingSceneSession.role
22 )
23 configuration.delegateClass = SceneDelegate.self
24 return configuration
25 }
26 }