So I guess making the hit cells in the search results instantiate a VC wasn’t a good question in regards to responses. I have a different approach that I’m not sure how to approach. I want the same tableVC holding my data to be the same tableVC that shows the hits as well. I was reading the documentation and it said something about subclassing so I added the HitsController protocol to my tableVC like so:
class TeacherTableViewController: UITableViewController, UITextFieldDelegate, MenuControllerDelegate, HitsController {
typealias DataSource = <#type#>
I am quite confused on what to put for the typealias line and what to do after that. Basically, I just want my TeacherTableViewController to be the hitsTableViewController instead of having 2 separate tableViewControllers.