2026-01-27 12:19:58 +00:00
|
|
|
import MoltbotKit
|
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.
|
|
|
|
|
}
|
|
|
|
|
}
|