Tuesday, July 30, 2013 [Tweets] [Favorites]

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

Stay up-to-date by subscribing to the Comments RSS Feed for this post.

Leave a Comment