We can proceed to add this : // ViewController.swift class ViewController: UIViewController { //... } extension ViewController : ProfileTableViewControllerDelegate { // do stuff here func logoutTapped() { print("logout tapped") } } There we have it!
// ViewController.swift class ViewController: UIViewController { var tableViewController : ProfileTableViewController?