feat: 初始化 iOS 远程控制端项目

This commit is contained in:
2026-07-29 10:34:02 +08:00
parent 11173eb04c
commit 1e37aa64cc
20 changed files with 2610 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
import UIKit
import SwiftUI
/// UIHostingController SwiftUI UIKit SwiftUI
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)
let hosting = UIHostingController(rootView: ContentView())
hosting.view.backgroundColor = .black
window.rootViewController = hosting
window.makeKeyAndVisible()
self.window = window
}
}