Skip to content

juanip027/MVVM-Sample

Repository files navigation

MVVM Sample

MVVM Sample is a login use case implementation of the MVVM architecture using ReactiveCocoa 4.

Also if you want to compare both, I've implemented this same case using the VIPER architecture -> VIPER-Sample

Requirements

It runs on iOS 9+ and requires Xcode 7.3 with Swift 2.2 to build.

Setup

Run the Mock Auth backend in localhost.

ruby MockRestServlet.rb

Use cocoapods to install the dependencies.

pod install 

Open the workspace in xCode.

Unit Tests

One of the main advantages of the MVVM Architecture is the high testability with a minimal setup, because of the separation of the app logic (ViewModel layer) from presentation (View layer).

Unit tests were written using the BDD frameworks Quick and Nimble.

To run the unit tests simply hit Cmd + U in Xcode.

About

MVVM Login sample using Swift 2 and ReactiveCocoa 4

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors