I'm translating some code from Objective-C to Swift, but something isn't working. The code below is supposed to switch views and pass a String, however, nothing happens when a cell is tapped. I've embedded both ViewControllers with a NavigationViewController in Storyboard.
func tableView(tableView: UITableView, didDeselectRowAtIndexPath indexPath: NSIndexPath) {
var dvc : TemplateViewController = self.storyboard?.instantiateViewControllerWithIdentifier("TemplateViewController") as TemplateViewController
dvc.tweet = self.templateList?.objectAtIndex(indexPath.row) as NSString
self.navigationController?.pushViewController(dvc, animated: true)
}