title: Unable to activate constraint with anchors
body: <p>So, I'm trying to create a sceneView programatically</p>
  <pre><code>class ViewController: UIViewController, ARSCNViewDelegate {
      var sceneView: ARSCNView = ARSCNView()
      let configuration = ARWorldTrackingConfiguration()
      
      override func viewDidLoad() {
          super.viewDidLoad()
          
          self.sceneView.debugOptions = [ARSCNDebugOptions.showFeaturePoints, ARSCNDebugOptions.showWorldOrigin]
          self.configuration.planeDetection = .horizontal
          self.sceneView.session.run(configuration)
          self.sceneView.delegate = self
          self.sceneView.autoenablesDefaultLighting = true
          
          //add autolayout contstraints
          self.sceneView.translatesAutoresizingMaskIntoConstraints = false
          self.sceneView.topAnchor.constraint(equalTo: self.view.topAnchor).isActive = true
          self.sceneView.leftAnchor.constraint(equalTo: self.view.leftAnchor).isActive = true
          self.sceneView.rightAnchor.constraint(equalTo: self.view.rightAnchor).isActive = true
          self.sceneView.bottomAnchor.constraint(equalTo: self.view.bottomAnchor).isActive = true
  
      }
      
      func renderer(_ renderer: SCNSceneRenderer, didAdd node: SCNNode, for anchor: ARAnchor) {
          guard anchor is ARPlaneAnchor else {return}
      }
  }
  </code></pre>
  <p>But I get this error message:</p>
  <blockquote>
  <p>Terminating app due to uncaught exception 'NSGenericException', reason: 'Unable to activate constraint with anchors &lt;NSLayoutYAxisAnchor:0x1c0278700 &quot;ARSCNView:0x10690d7e0.top&quot;&gt; and &lt;NSLayoutYAxisAnchor:0x1c426db40 &quot;UIView:0x106b14e30.top&quot;&gt; because they have no common ancestor.  Does the constraint or its anchors reference items in different view hierarchies?  That's illegal.'</p>
  </blockquote>
  <p>It's happens in the part <code>\\add autolayout contstraints</code>. How can I add constraints to that element?</p>