ReactiveViewModel icon indicating copy to clipboard operation
ReactiveViewModel copied to clipboard

forwardSignalWhileActive as signal operator

Open Adlai-Holler opened this issue 9 years ago • 1 comments

A category method on signal would increase readability a lot. If you wanna keep the API footprint small I get that, but anyone who uses this a lot will end up implementing it.

-(RACSignal *)rvm_forwardWhileViewModelActive:(RVMViewModel *)viewModel

Adlai-Holler avatar Mar 27 '15 01:03 Adlai-Holler

IME -forwardSignalWhileActive: is usually applied to an input, rather than a signal chain, which is probably why we haven't needed a category method.

I also find category methods on RACSignal slightly ugly, aesthetically, but that's not a good reason to avoid them. :stuck_out_tongue_closed_eyes:

jspahrsummers avatar Mar 27 '15 22:03 jspahrsummers