I'm trying to implement a search bar in my tableview, I'm using Swift Bond to populate the data in my table. Anyone know how to filter the data correctly with Bond?
I'm using the MVVM architecture. I'm doing all my binding in a method being called on viewDidLoad:
viewModel.students.bind(to: tableView, animated: false) { students, indexPath, tableview in
let student = students[indexPath.row]
let cell = tableview.dequeueReusableCell(withIdentifier: R.nib.studentCell.name, for: indexPath) as! StudentCell
cell.bind(to: student)
return cell
this allows for my table to be populated with values in students but am unable to think of how to implement the search bar.
I did all the config and delegation but not sure where to go from here.