diff --git a/TheSwiftWeek.xcodeproj/project.xcworkspace/xcuserdata/rohing73.xcuserdatad/UserInterfaceState.xcuserstate b/TheSwiftWeek.xcodeproj/project.xcworkspace/xcuserdata/rohing73.xcuserdatad/UserInterfaceState.xcuserstate index 2678a2d..5fbe364 100644 Binary files a/TheSwiftWeek.xcodeproj/project.xcworkspace/xcuserdata/rohing73.xcuserdatad/UserInterfaceState.xcuserstate and b/TheSwiftWeek.xcodeproj/project.xcworkspace/xcuserdata/rohing73.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/WebAppView.swift b/WebAppView.swift index 13c97df..41acd6d 100644 --- a/WebAppView.swift +++ b/WebAppView.swift @@ -8,7 +8,7 @@ import SwiftUI import WebKit - +import SafariServices struct WebAppView: View { @@ -24,7 +24,9 @@ struct WebAppView: View { } else { Text("please update to iOS 26.0 or later") - WebOldView(url: URL(string: "https://ai.irohlf.de")!) +// WebOldView(url: URL(string: "https://ai.irohlf.de")!) + SafariView(url: URL(string: "https://cloud.irohlf.de/s/oWYjxWJN9WwJsWq")!) + } } @@ -34,7 +36,7 @@ struct WebAppView: View { struct WebOldView: UIViewRepresentable { let url: URL - typealias UIViewType = WKWebView + //typealias UIViewType = WKWebView func makeUIView(context: Context) -> WKWebView { .init() } @@ -43,6 +45,19 @@ struct WebOldView: UIViewRepresentable { } } + +struct SafariView: UIViewControllerRepresentable { + + let url: URL + /// typealias UIViewControllerType = SFSafariViewController + + func makeUIViewController(context: Context) -> SFSafariViewController { + .init(url: url) + } + func updateUIViewController(_ uiViewController: SFSafariViewController, context: Context) { + + } +}