-
-
Save kakajika/ac7645880c65ae30540fbf1dc0c2795b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let itemsSubject = PublishSubject.create<[Item]>() | |
itemsSubject | |
.bind(to: tableView.rx.items(...)} | |
.disposed(by: disposeBag) | |
// 値を流す(空の配列なので何も表示されない) | |
itemsSubject.onNext([]) | |
// 値を流す(2つの要素を表示) | |
itemsSubject.onNext([Item(), Item()]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment