This example uses RxSwift both observables and subjects as binding mechanism between ViewModel
and ViewController
.
The following image illustrates the bindings:
ViewModel
inputs such as text field changes orUITableView
row selection are defined as swift functions which are simply wrappers for subjects inViewModel
ViewModel
outputs are defined asDriver
traits
Clone the repository:
git clone git@github.com:tailec/ios-architecture.git
Navigate to mvvm-rxswift-functions-subjects-observables
directory:
cd mvvm-rxswift-functions-subjects-observables
Install dependencies:
pod install