What do you name a protocol for ViewModel in MVVM?

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?

@tomasnovella Do you still have issues with this?

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,

This topic was automatically closed after 166 days. New replies are no longer allowed.