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,15 @@
import SwiftUI
import WebRTC
/// SwiftUI WebRTC Metal UIKit
/// ViewModel attach SwiftUI
struct RemoteVideoView: UIViewRepresentable {
let videoView: RTCMTLVideoView
func makeUIView(context: Context) -> RTCMTLVideoView {
videoView.videoContentMode = .scaleAspectFit
return videoView
}
func updateUIView(_ uiView: RTCMTLVideoView, context: Context) {}
}