Skip to content

Instantly share code, notes, and snippets.

@L-Sypniewski
Created July 9, 2018 09:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save L-Sypniewski/73176b9996f3201df5cb44d378e04ce3 to your computer and use it in GitHub Desktop.
Save L-Sypniewski/73176b9996f3201df5cb44d378e04ce3 to your computer and use it in GitHub Desktop.
//If you have 2 "rx" variables (drivers, observables etc) you can often chain them
//without a need to write code in subscribe close. For example:
someObject.loadingState
.drive(loadingStateMutable)
.disposed(by: disposeBag)
//This will apply values from someObject.loadingState to a loadingStateMutable variable in a viewModel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment