Skip to content

Instantly share code, notes, and snippets.

@sergdort
Last active December 17, 2015 14:19
Show Gist options
  • Save sergdort/f637d8a4d5adf0d57e49 to your computer and use it in GitHub Desktop.
Save sergdort/f637d8a4d5adf0d57e49 to your computer and use it in GitHub Desktop.
class RxTableViewCell<ViewModelType>: UITableViewCell, BindableView {
typealias V = ViewModelType
let onPrepareForReuse:Observable<Void> = PublishSubject()
var rx_viewModel: AnyObserver<V> {
return AnyObserver { event in
// This is base class implementation
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment