affect the world around me self.view.backgroundColor = UIColor.cyan // 1 create the view let minimalSceneKitView = self.view as! SCNView // 2 create the scene and attach it to the view let minimalSceneKitScene = SCNScene() minimalSceneKitView.scene = minimalSceneKitScene /// 3 create an object and attach the object to the scene via a node let sphereOne = SCNSphere(radius: 8.0) let sphereOneMaterial = SCNMaterial() sphereOneMaterial.diffuse.contents = UIColor.green sphereOne.materials = [sphereOneMaterial] let sphereOneNode = SCNNode(geometry: sphereOne) minimalSceneKitScene.rootNode.addChildNode(sphereOneNode) SceneKit // 4 create a camera and attach the camera to the scene via a node let cameraOne = SCNCamera() let cameraOneNode = SCNNode() cameraOneNode.camera = cameraOne cameraOneNode.position = SCNVector3Make(0.0, 0.0, 30.0) minimalSceneKitScene.rootNode.addChildNode(cameraOneNode) // 5 create a light and attach the light to the scene via a node let lightOne = SCNLight() let lightOneNode = SCNNode() lightOneNode.light = lightOne lightOneNode.position = SCNVector3Make(-30.0, 30.0, 50.0) minimalSceneKitScene.rootNode.addChildNode(lightOneNode)