16 lines
351 B
Swift
16 lines
351 B
Swift
import MoltbotKit
|
|
import SwiftUI
|
|
import WebKit
|
|
|
|
struct ScreenWebView: UIViewRepresentable {
|
|
var controller: ScreenController
|
|
|
|
func makeUIView(context: Context) -> WKWebView {
|
|
self.controller.webView
|
|
}
|
|
|
|
func updateUIView(_ webView: WKWebView, context: Context) {
|
|
// State changes are driven by ScreenController.
|
|
}
|
|
}
|