Relative Content

Tag Archive for iosswiftswiftuiwebviewwebkit

SwiftUI Cant load HTML string WKWebView

We use CloudFlare protection for connection. And when the verification request is triggered, the backend sends us the HTML code, which we open using Webview, respectively, the main problem is that I just see a white screen on the phone. I tried moving the code from makeUiView to updateUiView, but it also didn’t give any result. I also set various settings in the .plist file with AllowArbitaryLoadsForWebView (or something like that, I don’t remember exactly). The same HTML code opens perfectly for colleagues on android, but on iOS all I see is just a white screen. At the same time, some scripts should be executed in this HTML code, but I also kind of set it all up.