title: iOS JSON pass to NextViewController in TableVIewCell
body: <p>I'm making a weather app, and when I click the table view cell, I want to load the weather of cities in the country into a JSON file.</p>
  <p>So I want to pass the JSON file name to the next controller, but it keeps getting nil. Any ideas?</p>
  <p>vc1</p>
  <pre class="lang-swift prettyprint-override"><code>...
  // Data Transfer
      override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
          
          guard let nextViewController: SecondViewController = segue.destination as? SecondViewController else {
              return
          }
          guard let cell: UITableViewCell = sender as? UITableViewCell else {
              return
          }
          nextViewController.title = cell.textLabel?.text
          // error
          nextViewController.secondAssetName = country.assetName
      }
  </code></pre>
  <p>vc2</p>
  <pre class="lang-swift prettyprint-override"><code>...
  // citi weather decode But, getting nil
          let jsonDecoder = JSONDecoder()
              guard let dataAsset = NSDataAsset(name: secondAssetName ?? &quot; &quot;) else {
              return
          }
          do {
              weathers = try jsonDecoder.decode([Weather].self, from: dataAsset.data)
          } catch {
              print(error.localizedDescription)
          }
          tableView.reloadData()
      }
  </code></pre>