WKWebView仅显示背景

我有一个简单的ARKit应用程序(SceneKit)。 我创建了一个SCNBox,然后我想在多维数据集的正面添加一个Web视图。

func createBox(position: SCNVector3) { let box = SCNBox(width: 0.1, height: 0.1, length: 0.1, chamferRadius: 1) guard let url = URL(string: "https://www.google.com") else { return } let request = URLRequest(url: url) let webView = WKWebView(frame: CGRect(x: 0, y: 0, width: 500, height: 500), configuration: WKWebViewConfiguration()) webView.load(request) let sides = [ webView, // Front UIColor.black, // Right UIColor.black, // Back UIColor.black, // Left UIColor.black, // Top UIColor.black // Bottom ] let materials = sides.map { (side) -> SCNMaterial in let material = SCNMaterial() material.diffuse.contents = side material.locksAmbientWithDiffuse = true return material } box.materials = materials let boxNode = SCNNode(geometry: box) boxNode.position = position sceneView.scene.rootNode.addChildNode(boxNode) } 

它只显示白屏。 这不是一个空白页面。 我可以滚动它并点击某个地方。 如果我打开一个红色背景的网站,它将是红色等等。 它工作,但我只看到背景(也许是一个元素。例如在https://apple.com上我看到背景和顶部的灰线(导航))。 我该如何解决? 谢谢。