Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lm2343635 authored Apr 30, 2020
1 parent 069ead8 commit bcbeca1
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
</p>

<p align="center">
<a href="https://github.com/RxSwiftCommunity/RxController/actions"><img src="https://github.com/RxSwiftCommunity/RxController/workflows/build_check/badge.svg?branch=master"></a>
<a href="https://cocoapods.org/pods/RxController"><img src="https://img.shields.io/cocoapods/v/RxController.svg?style=flat"></a>
<a href="https://cocoapods.org/pods/RxController"><img src="https://img.shields.io/cocoapods/l/RxController.svg?style=flat"></a>
<a href="https://cocoapods.org/pods/RxController"><img src="https://img.shields.io/cocoapods/p/RxController.svg?style=flat"></a>
Expand Down Expand Up @@ -86,6 +87,22 @@ func navigate(to step: Step) -> FlowContributors {
}
```

Within RxViewController, the following standard methods are provided for building UI and binding data.

- `open func subviews() -> [UIView]`

The subview method return an array of some views.
These views will be added to the root view of the view controller orderly.

- `open func createConstraints()`

Create constranint for subviews of root view.

- `open func bind() -> [Disposable]`

The bind method return an array of `Disposable`.
The RxSwift style data binding can be listed in this method, without writting a `disposed(by:)` method.

### Exchange data among parent and child view models

In a standard MVVM-C architecture using RxFlow, view models exchange data via a flow class using the `steps.accept()` method.
Expand Down

0 comments on commit bcbeca1

Please sign in to comment.