1 min readOct 1, 2017
You would need to create another delegate method for ViewModel:
protocol ViewModelDeletate: class {
// another methods ... func didSelect(diary: Diary)
}
Now you can call this delegate method from didSelectRowAtIndexPath.
You would need to create another delegate method for ViewModel:
protocol ViewModelDeletate: class {
// another methods ... func didSelect(diary: Diary)
}
Now you can call this delegate method from didSelectRowAtIndexPath.