Instead of creating a webservice object in the view, you can use the VM and create webservice inside the VM. The VM can perform the request and populate itself. This way your view interacts directly with VM instead of calling the webservice directly.

iOS Developer, speaker and educator. Top Udemy and LinkedIn instructor. Lead instructor at DigitalCrafts. https://www.udemy.com/user/mohammad-azam-2/

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store