title: SceneKit: How to place a 3D object in order to fit the SCNView bounds?
body: <p>I'm new to <code>SceneKit</code> and <strong>3D objects</strong>. I've been doing some research but I didn't find an answer to my question.</p>
  
  <p>I need to display several 3D objects in an horizontal <code>UICollectionView</code>, one in each cell. I'd like them to be aligned and the same size so I'd like them to fit the parent view, aka the <code>SCNView</code>.</p>
  
  <p>An image to picture the scenario:</p>
  
  <p><a href="https://i.stack.imgur.com/Gv5gJ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Gv5gJ.png" alt="3D objects, each in a SCNView, all the same size"></a></p>
  
  <p>I'd like that the bounds of the 3D object visually matches the bounds of the SCNView. I want the 3D object to "fit" in the view, a bit like <code>UIViewContentMode.scaleAspectFit</code>.</p>
  
  <hr>
  
  <p>Here's my code so far:</p>
  
  <pre><code>let scene=SCNScene(named: file_name)
  let node=scene.rootNode.childNode(withName: node_name, recursively: true)!
  node.scale=SCNVector3Make(28, 28, 28)
  node.position=SCNVector3Make(0, 0.05, -0.5)
  scene.rootNode.addChildNode(node)
  sceneview.scene=scene
  </code></pre>