Slide 27
Slide 27 text
@rompelstilchen
ENRICHED UI WITH ARKIT
POSITION CONTENT - FIX POSITION
// fix position relative to the
point of view
// kind of useless
let box = SCNBox(width: 0.1, height:
0.1, length: 0.1, chamferRadius: 0)
box.firstMaterial?.diffuse.contents
= UIColor.red
let node = SCNNode(geometry: box)
node.position = SCNVector3(0, 0, -1)
sceneView.pointOfView?.addChildNode(
node)
// it’s a UIView subclass
let label = UILabel()
view.addSubview(label)
27
@rompelstilchen