Group Group Group Group Group Group Group Group Group

What do you name a protocol for ViewModel in MVVM?

#1

So we have an app using MVVM architecture and we call view models like XViewModel (eg DatasetViewModel), views XViewController (eg DatasetViewController).
However we don’t know what to name the protocol the XViewModelImplements.

Any suggestions?

#2

@tomasnovella Do you still have issues with this?

#3

hi @tomasnovella,
here’s a suggestion if you are naming your viewModel as XViewModel, viewController as XViewController then try calling your protocols as XViewModelProtocol so it is clearer, like the standard iOS protocols with delegate and datasource for UITableViews.

cheers,