Created
August 3, 2017 00:59
-
-
Save shoheiyokoyama/469a4e5726ceb76c018720ccca958f0e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
button.rx.tap | |
.subscribe(onNext: { [weak self] in | |
API.fetchData | |
.subscribe(onNext: { data in | |
self?.updateUI(with: data) | |
}) | |
.disposed(by: self?.disposeBag!) | |
}) | |
.disposed(by: disposeBag) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment