title: How to add 3D shapes in Swift UI?
body: <p>I want to know how to add 3D shapes (eg. Sphere) in swift UI </p>
  
  <p>I have tried adding a scnscene and using that in swift UI but I get a error message </p>
  
  <pre><code>//SceneKit
  
  class myscene: SCNScene{
   override init(){
       super.init()
   }
   required init?(coder: NSCoder) {
       fatalError("init(coder: ) has not been implemented")
   }
  }
  
  //Swift UI 
  
  struct ContentView: View {
   var body: some View {
  
       let sphere = SCNSphere(radius: 2.0)
       sphere.firstMaterial?.diffuse.contents = UIColor.blue
       let spherenode = SCNNode(geometry: sphere)
       spherenode.position = SCNVector3(x: 0.0, y: 3.0, z: 0.0)
   }
  }
  
  </code></pre>
  
  <p>The error message is on <code>var body: some View {</code> line and reads as follows :</p>
  
  <p><code>Function declares an opaque return type, but has no return statements in its body from which to infer an underlying type</code></p>
  
  <p>Please help me with this problem......</p>