rebuild for old WebView

This commit is contained in:
Maximilian Roider
2025-11-14 09:53:15 +01:00
parent 2c602e6f0d
commit 3c6ed00379
3 changed files with 69 additions and 26 deletions

View File

@@ -0,0 +1,27 @@
//
// OldWebview.swift
// Clemens Playground
//
// Created by Maximilian Roider on 14.11.25.
//
import Foundation
import SwiftUI
import WebKit
struct OldWebView: UIViewRepresentable {
let url: String
init(_ url: String) {
self.url = url
}
func makeUIView(context: Context) -> some UIView {
let webView = WKWebView()
webView.load(URLRequest(url: URL(string: url)!))
return webView
}
func updateUIView(_ uiView: UIViewType, context: Context) {}
}