title: How to add back side image as texture with SceneKit iOS
body: <p>I am new to SceneKit and created an object I added an image as texture to object but it is showing on both the side front and back .what I want is to display another image behind it .is that possible to add two texture for an object? </p>
  
  <pre><code>    let scene = SCNScene()
      var planet : SCNGeometry
      let tempScene = SCNScene(named: "FrameOBJ.obj")
      planet = tempScene!.rootNode.childNodes[0].geometry!
      let material = SCNMaterial()
  
      let url = URL(string: "www.imageasf.com/123.png")
      let data = try? Data(contentsOf: url!) //make sure your image in this url does exist, otherwise unwrap in a if let check / try-catch
      let image = UIImage(data: data!)
  
      material.diffuse.contents = image
      material.diffuse.wrapT = SCNWrapMode.mirror
      material.diffuse.wrapS = SCNWrapMode.mirror
      material.isDoubleSided = true
      planet.materials = [material]
      let planetNode = SCNNode(geometry: planet)
      scene.rootNode.addChildNode(planetNode)
      sceneView.cameraControlConfiguration.allowsTranslation = true
      sceneView.allowsCameraControl = true
      sceneView.scene = scene
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/ALgtB.png" rel="nofollow noreferrer">Front View</a>
      <a href="https://i.stack.imgur.com/TXsqN.png" rel="nofollow noreferrer">Back View</a></p>