i tried using webview to render a website (https://pub-app-stg.intellifms.com/auth/sign-in) and for some reason it stays blank white.
other site works normally, with app transport security.
<key>NSAppTransportSecurity</key>
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>https://pub-app-stg.intellifms.com/auth/sign-in</key>
<dict>
<key>NSIncludesSubdomains</key>
<true/>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
</dict>
</dict>
the code goes as simple as this
import SwiftUI
import WebKit
struct WebView: UIViewRepresentable {
let url: URL
func makeUIView(context: Context) -> WKWebView {
return WKWebView()
}
func updateUIView(_ uiView: WKWebView, context: Context) {
let request = URLRequest(url: url)
uiView.load(request)
}
}
struct ContentView: View {
var body: some View {
WebView(url: URL(string: "https://pub-app-stg.intellifms.com/auth/sign-in")!)
}
}
I cant find the reason why it wont, the website connection is secure, it has proper certifications and it just would work. im starting to thinks theres a problem with the certificate because its using a public certificate.