I have been trying to place some text in ARKit using SCNText and it does not appear to do anything. No text is displayed on the screen.
- let text = SCNText(string: item.label, extrusionDepth: 5.0)
- text.firstMaterial?.diffuse.contents = UIColor.orange
- text.firstMaterial?.specular.contents = UIColor.orange
- text.font = UIFont(name: "Optima", size: 100)
- text.containerFrame = CGRect(x: 0, y: 0, width: 100, height: 44)
- let textNode = SCNNode(geometry: text)
- textNode.position = SCNVector3(-0.2 + x, -0.9 + delta, -1)
- x += 0.12
- scene.rootNode.addChildNode(textNode)