Google News
logo
IOS - Interview Questions
What is Model-View-ViewModel Architecture an iOS?
MVVM (Model View View-Model) is an iOS architectural design pattern in which we separate objects into three main components.
 
Model : It contains the application data. It is responsible for data parsing and data persistence.

View : It is responsible for displaying the model data on the screen, including the visual elements and controls. It is the subclass of UIView and highly reusable.

ViewModel : It contains the business logic that transforms the model data into the values and passes it to the view. In MVVM, all the business logic, including data manipulation, takes place at ViewModel.
Advertisement