title: passing data with performSegueWithIdentifier nil
body: <p>I have the segue setup as:</p>
  
  <p><a href="https://i.stack.imgur.com/fRi4d.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fRi4d.png" alt="enter image description here"></a></p>
  
  <p>and the tableView row selection:</p>
  
  <pre><code>override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
  
      tableView.deselectRowAtIndexPath(indexPath, animated: true)
  
      // Ensure controller knows which dataset to pull from,
      // so detail view is correct
      var friendChat: Friend!
      if searchController.active &amp;&amp; searchController.searchBar.text != "" {
          friendChat = filterMappedFriends[indexPath.row]
      } else {
          friendChat = mappedFriends[indexPath.row]
      }
  
      // Now set the conditional cases: if a friend then chat, if user then friend request if not user then can invite them:
      if(friendChat.statusSort == 2) {
  
          self.performSegueWithIdentifier("showIndividualChat", sender: friendChat)
  
      } else if (friendChat.statusSort == 1) {
  
          print("Can invite to be friend")
  
      } else if (friendChat.statusSort == 0) {
  
          print("Invite to Feast")
  
      }
  }
  </code></pre>
  
  <p>and the prepareForSegue:</p>
  
  <pre><code>override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
  
      if let indexPath = tableView.indexPathForSelectedRow {
  
          // Ensure controller knows which dataset to pull from,
          // so detail view is correct
          let friendChat: Friend
          if searchController.active &amp;&amp; searchController.searchBar.text != "" {
              friendChat = filterMappedFriends[indexPath.row]
          } else {
              friendChat = mappedFriends[indexPath.row]
          }
  
          // Now set the conditional cases: if a friend then chat, if user then friend request if not user then can invite them:
  
          if segue.identifier == "showIndividualChat" {
  
              let controller = segue.destinationViewController as! IndividualChatController
              controller.friendChat = friendChat
              controller.senderId = Global.sharedInstance.userID
              controller.senderDisplayName = Global.sharedInstance.userName
          }
      }
  }
  </code></pre>
  
  <p>However, the object <code>friendChat</code>, seen in <code>controller.friendChat</code>, of the destination controller is always nil.</p>
  
  <p>How can I pass the data:</p>
  
  <pre><code>        controller.friendChat = friendChat
          controller.senderId = Global.sharedInstance.userID
          controller.senderDisplayName = Global.sharedInstance.userName
  </code></pre>
  
  <p>to the destination controller successfully? </p>