title: SwiftUI - creating a class error: Argument passed to call that takes no arguments
body: <p>I am new to Swift and am trying to create a simple class 'Cat.swift' and then to pass the class to my SceneDelegate file which then passes it to my ContentView file. </p>
  
  <p>however, I keep getting the 'Argument passed to call that takes no arguments' error and the build keeps failing.</p>
  
  <p>Cat.swift code</p>
  
  <pre><code>class Cat {
      var breed: String = ""
      var personality: String = ""
      var colour: String = ""
      var characterisitics: String = ""
  
      init(bre: String, pers: String, col: String, chars: String) {
          breed = bre
          personality = pers
          colour = col
          characterisitics = chars
      }
  }
  </code></pre>
  
  <p>SceneDelegate.swift code</p>
  
  <pre><code>class SceneDelegate: UIResponder, UIWindowSceneDelegate {
  
      var window: UIWindow?
  
      let cat = Cat(bre: "ooo", pers: "ppp", col: "ppp", chars: "ppp")
  
      func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
          let contentView = ContentView(cat: cat)
          if let windowScene = scene as? UIWindowScene {
              let window = UIWindow(windowScene: windowScene)
              window.rootViewController = UIHostingController(rootView: contentView)
              self.window = window
              window.makeKeyAndVisible()
          }
      }
  
  </code></pre>
  
  <p>ContentView.swift file</p>
  
  <pre><code>import SwiftUI
  
  struct ContentView: View {
      var body: some View {
          Text("bugggggy\(cat.bre)")
          }
      }
  
  
  struct ContentView_Previews: PreviewProvider {
      static var previews: some View {
          ContentView(cat: Cat(bre: "p", pers: "p", col: "p", chars: "p"))
      }
  }
  </code></pre>