2026-01-30 03:15:10 +01:00
|
|
|
import OpenClawKit
|
2025-12-12 21:18:54 +00:00
|
|
|
import SwiftUI
|
|
|
|
|
import WebKit
|
|
|
|
|
|
|
|
|
|
struct ScreenWebView: UIViewRepresentable {
|
2025-12-14 05:04:58 +00:00
|
|
|
var controller: ScreenController
|
2025-12-12 21:18:54 +00:00
|
|
|
|
|
|
|
|
func makeUIView(context: Context) -> WKWebView {
|
|
|
|
|
self.controller.webView
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func updateUIView(_ webView: WKWebView, context: Context) {
|
|
|
|
|
// State changes are driven by ScreenController.
|
|
|
|
|
}
|
|
|
|
|
}
|