Skip to content

Commit 02bc729

Browse files
authored
Update README.md
1 parent b988b01 commit 02bc729

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,16 @@ Create constranint for subviews of root view.
103103
The bind method return an array of `Disposable`.
104104
The RxSwift style data binding can be listed in this method, without writting a `disposed(by:)` method.
105105

106+
### Access lifecycle from view model directly
107+
108+
The following lifecycle signal can be accessed from view model directly.
109+
110+
- `viewDidLoad: Observable<Void>`
111+
- `viewWillAppear: Observable<Void>`
112+
- `viewDidAppear: Observable<Void>`
113+
- `viewWillDisappear: Observable<Void>`
114+
- `viewDidDisappear: Observable<Void>`
115+
106116
### Exchange data among parent and child view models
107117

108118
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)