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

@@ -4,6 +4,18 @@
//
// Created by Maximilian Roider on 14.11.25.
//
/*
*/
import SwiftUI
import WebKit
@@ -12,37 +24,15 @@ import WebKit
struct Clemens_PlaygroundApp: App {
private var url = "https://fressnapf-dev-gameassets.gamegame-server.de/"
@State private var page = WebPage()
var body: some Scene {
WindowGroup {
VStack {
// remove this lines
Text("Handy Games sucks!")
.bold()
.italic()
Text(page.title)
// Use this for >= Xcode 26 and remove commentary in "NewWebView.swift"
// NewWebView(url)
// and some greetings from my cat:
// ouranojjaöreognaubergoinbilllnsdbaf
/*
*/
// Only this needs to stay
WebView(page)
}
.onAppear {
page.load(URLRequest(url: URL(string: url)!))
// Use this for < Xcode 26
OldWebView(url)
}
}
}