Tuesday, July 30, 2013

ReactiveViewModel

The ReactiveCocoa project has a good description of the Model-View-ViewModel design pattern:

Although it seems similar to MVC (except with a “view model” object in place of the controller), there’s one major difference — the view owns the view model. Unlike a controller, a view model has no knowledge of the specific view that’s using it.

This makes the view-related code easier to reuse and test.

Comments RSS · Twitter

Leave a Comment