Daily iOS
Architecture

Legacy MVC to MVVM

You've been asked to move a 5-year-old MVC app (150 view controllers, almost no tests) to MVVM, and the service has to keep shipping. What's your strategy?

How would an interviewer hear this answer? You'll see whether they'd move on, dig in, or say no, and which sentences would trip you up. Your score doesn't change.
See the short answer

No big-bang rewrite. Put protocols on the boundaries (network, storage), protect with characterization tests, extract a ViewModel one screen at a time, and build new screens under the new rules. Keep a guide that allows both styles to coexist, and keep metrics.

Share a question