title: Cast shadows to SCNNodes in ARKit
body: <p>I'm trying to attach a <code>Spotlight</code> to the ARCamera:</p>
  
  <pre><code>fileprivate lazy var spotLight: SCNLight = {
      let spotLight = SCNLight()
      spotLight.type = .spot
      spotLight.spotInnerAngle = 0
      spotLight.spotOuterAngle = 45
      spotLight.castsShadow = true
      return spotLight
  }()
  
  sceneView.pointOfView?.light = spotLight
  </code></pre>
  
  <p>But there's a problem. Light works well, but there is no shadow. What's wrong?</p>
  
  <p><a href="https://i.stack.imgur.com/USQPU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/USQPU.png" alt="enter image description here"></a></p>