mirror of
https://github.com/dirtydishes/dreamio.git
synced 2026-06-06 13:37:24 +00:00
build wkwebview mvp shell
This commit is contained in:
parent
e8993ee7d1
commit
d4e49cde1e
7 changed files with 830 additions and 0 deletions
20
Dreamio/SceneDelegate.swift
Normal file
20
Dreamio/SceneDelegate.swift
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
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
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue