Stan Ostrovskiy
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.

--

--

Stan Ostrovskiy
Stan Ostrovskiy

No responses yet