title: When transferring text from a cell to a label in the next VC, it doesn't appear the first time the VC is opened
body: <p>I am making an app where you create memories into a tableView and you tap on a cell and it takes you to its designated VC, I am trying to make it so that when the cell is tapped, the text from inside that table cell is taken into the label in the next VC. This works but the problem is that when the view is first opened, the text doesn't appear inside the label, even though the console says that the text has loaded correctly:</p>
  
  <p><a href="https://i.stack.imgur.com/Jxrhi.png" rel="nofollow noreferrer">TableView with a test cell in it.</a></p>
  
  <p><a href="https://i.stack.imgur.com/4Z3uJ.png" rel="nofollow noreferrer">First time the VC for the cell is opened</a></p>
  
  <p><a href="https://i.stack.imgur.com/Wz8GG.png" rel="nofollow noreferrer">Console saying that the text has transferred and loaded correctly</a></p>
  
  <p><a href="https://i.stack.imgur.com/eMOqt.png" rel="nofollow noreferrer">Second time the VC is opened.</a></p>
  
  <p>Here is my transferring and loading code for the ViewControllers:</p>
  
  <pre><code>class ViewController: UIViewController, UITableViewDelegate, UITableViewDataSource, UITextFieldDelegate {
  
  var selectedRow : Int = 0 + 1 
  
  var selectedNameVC : String?
  
  var favourites: [NSManagedObject] = []
  
  func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -&gt; UITableViewCell {
  
          let cell = tableView.dequeueReusableCell(withIdentifier: "Cell", for: indexPath)
  
                //MARK:- New CoreData methods
          let favMemory = favourites[indexPath.row]
                cell.textLabel?.text = favMemory.value(forKeyPath: "name") as? String
  
          if #available(iOS 13.0, *) {
              cell.backgroundColor = UIColor.secondarySystemGroupedBackground
          } else {
              // Fallback on earlier versions
          }
                return cell
     }
  
  func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
          tableView.deselectRow(at: indexPath, animated: true)
          selectedRow = indexPath.row
  
  
          let cell = tableView.cellForRow(at: indexPath)
  
          let favMemory = cell?.textLabel?.text
          selectedNameVC = favMemory
      }
  
      override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
          if let destination = segue.destination as? FavouritesViewController {
              destination.row = selectedRow
              destination.selectedName = selectedNameVC
  
  
          }
      }
  
  </code></pre>
  
  <pre><code>class FavouritesViewController: UIViewController, UINavigationControllerDelegate, UIImagePickerControllerDelegate, UITextFieldDelegate, UITextViewDelegate {
  
  var selectedName: String?
  
  override func viewDidAppear(_ animated: Bool) {
          super.viewDidAppear(true)
  
          labelText.text = selectedName
  
          if labelText.text == "" as String? {
              print("Title has not loaded correctly.")
          } else {
              print("Title has loaded correctly.")
          }
  }
  
  </code></pre>