Skip to content

Instantly share code, notes, and snippets.

@shoheiyokoyama
Created August 3, 2017 00:59
Show Gist options
  • Save shoheiyokoyama/469a4e5726ceb76c018720ccca958f0e to your computer and use it in GitHub Desktop.
Save shoheiyokoyama/469a4e5726ceb76c018720ccca958f0e to your computer and use it in GitHub Desktop.
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