I send the user over to a page on a button click. This page is a UITableViewController.
Now if the user taps on a cell, I would like to push him ba
swift 5 and above
case 1 : using with Navigation controller
self.navigationController?.popViewController(animated: true)
case 2 : using with present view controller
self.dismiss(animated: true, completion: nil)