Member-only story

Refactor MVC iOS App to MVVM with RxSwift in Minutes

Alfian Losari
16 min readMar 14, 2019

--

Movie Info iOS App with MVVM & RxSwift

You can also read this article in my Xcoding With Alfian blog website using the link below.

MVC is the app architecture that Apple recommends to the developers when developing iOS application. It provides clear separation between view, model, and controller. The controller sits at the middle and acts as a glue between view and model. Almost all the logic, data transformation from model to view is thrown inside the controller.

Apple MVC Diagram. Courtesy of © Apple Inc.

Overtime as the features and requirements grow, the view controller become so massive by all the logic, state management, data transformation, it will become tightly coupled and become very hard to test as an unit. Although is not always the case, if we carefully manage it properly. See Dave De Long blog post on better MVC.

--

--

Alfian Losari
Alfian Losari

Written by Alfian Losari

Mobile Developer and Lifelong Learner. Currently building super app @ Go-Jek. Xcoding with Alfian at https://alfianlosari.com

Responses (3)