rootstrap / ios-base

Boilerplate for new iOS projects using Swift 5. Provides a handful of functionalities.
https://rootstrap.com/
MIT License
259 stars 63 forks source link

Refactor examples to MVVM #91

Closed glm4 closed 6 years ago

glm4 commented 6 years ago

This is the first step of Milestone 1. Fixes #89. Includes:

  1. Simple implementation of MVVM in the current examples.
    • Added SignInViewModel, SignUpViewModel and HomeViewModel holding business logic and separating it from Views/ViewControllers.

Next step proposal:

Notes:


Risk:


germanStabile commented 6 years ago

It would be nice to have an example with a view controller with more complex data (i.e: a collection or several) to show the real gain of MVVM :)

glm4 commented 6 years ago

@germanStabile about the example with more complex data, I wouldn't add any more examples to the base but I see your point. If someone would like to see other examples I would recommend the feature/RX_Swift branch.

Right now we don't really see the difference because this is part of a bigger set of changes.