Skip to content

Instantly share code, notes, and snippets.

@yonivav
Created April 1, 2019 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 yonivav/e9eb4bdc145ac63d3d1e3b017199a096 to your computer and use it in GitHub Desktop.
Save yonivav/e9eb4bdc145ac63d3d1e3b017199a096 to your computer and use it in GitHub Desktop.
class MyCell: UITableViewCell {
private var disposeBag = DisposeBag()
override func prepareForReuse() {
super.prepareForReuse()
disposeBag = DisposeBag() // Destroys and disposes of old subscriptions, creates a new cell
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment