Skip to content

Commit bcbeca1

Browse files
authored
Update README.md
1 parent 069ead8 commit bcbeca1

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
</p>
44

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

90+
Within RxViewController, the following standard methods are provided for building UI and binding data.
91+
92+
- `open func subviews() -> [UIView]`
93+
94+
The subview method return an array of some views.
95+
These views will be added to the root view of the view controller orderly.
96+
97+
- `open func createConstraints()`
98+
99+
Create constranint for subviews of root view.
100+
101+
- `open func bind() -> [Disposable]`
102+
103+
The bind method return an array of `Disposable`.
104+
The RxSwift style data binding can be listed in this method, without writting a `disposed(by:)` method.
105+
89106
### Exchange data among parent and child view models
90107

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

0 commit comments

Comments
 (0)