Skip to content

Latest commit

 

History

History

mvvm-functions-subjects-observables

mvvm-rxswift-functions-subjects-observables

This example uses RxSwift both observables and subjects as binding mechanism between ViewModel and ViewController.

Implementation

The following image illustrates the bindings:

scenario

  • ViewModel inputs such as text field changes or UITableView row selection are defined as swift functions which are simply wrappers for subjects in ViewModel
  • ViewModel outputs are defined as Driver traits

Installation

Clone the repository:

git clone [email protected]:tailec/ios-architecture.git

Navigate to mvvm-rxswift-functions-subjects-observables directory:

cd mvvm-rxswift-functions-subjects-observables

Install dependencies:

pod install