2025-12-13 01:33:30 +00:00
|
|
|
import ClawdisKit
|
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.
|
|
|
|
|
}
|
|
|
|
|
}
|