title: Swift - Pass data from table view xib file to view controller
body: <p>I am trying to pass data from my table which is a xib file to a view controller but for some reason, the code is not working and throwing an error. I have also browsed the internet, yet not got the solution.</p>
  
  <p><strong>viewDidLoad Function</strong></p>
  
  <pre><code>override func viewDidLoad() {
          super.viewDidLoad()
          dataPass()
         self.navigationItem.title = "Landlord List"
          propertyTabel.register(UINib(nibName: "PropertyCell", bundle: nil), forCellReuseIdentifier: "Cell")
          propertyTabel.dataSource = self
          propertyTabel.delegate = self
     }
  </code></pre>
  
  <p><strong>didSelectRowAt Function</strong></p>
  
  <pre><code>override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
          let vc = storyboard?.instantiateViewController(withIdentifier: "PropertyDetailsVC") as? PropertyDetailsVC
          var dict = arrRes[indexPath.row]
          prop.userId = nullToNil(value: dict["user_id"]) as? String
          prop.id = nullToNil(value: dict["property_id"]) as? String
          prop.code = nullToNil(value: dict["property_code"]) as? String      
          present(vc!, animated: true, completion: nil)
      }
  </code></pre>
  
  <p><strong>Error Screenshot</strong></p>
  
  <p><a href="https://i.stack.imgur.com/FjgGF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FjgGF.png" alt=""></a></p>