Upon following the IOS tutorial detailing how to Display Algolia hits in a tableview, the searchbar is functional, as evidenced by relevant console logs. However, I am struggling to display these results in my tableview.
According to the tutorial linked above, the following line declares the tableview in which the search results will be displayed:
let hitsTableController: HitsTableController<HitsInteractor<JSON>> = .init(tableView: UITableView())
Doing so, however, leds to the following error:
> "'HitsTableController' is unavailable: Use your own > UITableViewController conforming to HitsController protocol"
Things I’ve tried:
- Extending the HitsController protocol to my UITableViewController and trying to to let
self, but that leads to a bulk of errors, starting with XCode repeatedly demanding I conform to HitsController protocol despite implementing the suggested stubs.
- Porting all my code to a new ViewController, one that doesn’t extend the
UITableViewControllerprotocol, to no prevail.
- Searching through a plethora of Stackoverflow & Github questions and issues to find a similar problem, to no prevail.