mirror of
https://github.com/dirtydishes/dreamio.git
synced 2026-06-06 21:38:15 +00:00
20 lines
547 B
Swift
20 lines
547 B
Swift
import UIKit
|
|
|
|
final class SceneDelegate: UIResponder, UIWindowSceneDelegate {
|
|
var window: UIWindow?
|
|
|
|
func scene(
|
|
_ scene: UIScene,
|
|
willConnectTo session: UISceneSession,
|
|
options connectionOptions: UIScene.ConnectionOptions
|
|
) {
|
|
guard let windowScene = scene as? UIWindowScene else {
|
|
return
|
|
}
|
|
|
|
let window = UIWindow(windowScene: windowScene)
|
|
window.rootViewController = DreamioWebViewController()
|
|
window.makeKeyAndVisible()
|
|
self.window = window
|
|
}
|
|
}
|