I thought that I had this code correct; however, when I run it, I click on the cell and nothing happens. The code that I have to push the view controller is in my didSelectRowAt func.
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
tableView.deselectRow(at: indexPath, animated: true)
let vc = ChatViewController()
vc.title = "Jenny Smith"
vc.navigationItem.largeTitleDisplayMode = .never
navigationController?.pushViewController(vc, animated: true)
}
Can anyone explain what I'm doing wrong here and why a click doesn't show a new ViewController?