Skip to content

Instantly share code, notes, and snippets.

@gorozco58
Created January 13, 2017 17:05
Show Gist options
  • Save gorozco58/5871f227f8d541e03077737f6e856892 to your computer and use it in GitHub Desktop.
Save gorozco58/5871f227f8d541e03077737f6e856892 to your computer and use it in GitHub Desktop.
fileprivate func setup() {
... older code
//biand a repository to the view model when the user selects a row
tableView
.rx
.modelSelected(Repository.self)
.bindTo(viewModel.repositorySubject)
.addDisposableTo(disposeBag)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment