ALReactiveCocoaExtension for ReactiveCocoa

As many posts here already described, I’m a huge fan of ReactiveCocoa. It’s very flexible and gives me the opportunity to create reusable solutions through custom signals.

As I’m using it daily, I’ve created an extension with some useful functions and uploaded it to Github.

It includes methods like subscribeNextAs, doNextAs and flattenMapAs, which give you automatic casting. It’ll also log if a casting failed, which in some cases comes as a rescue.

It also includes RACObserve, which is the replacement of the Objective-C #define version. Another handy implementation is the rac_addObserversForNames, which creates an observer for multiple names in one.

ReactiveCocoa extension on Github

Find it out yourself here:


Antoine van der Lee

Dutch iOS developer at Triple. Developed apps like Buienradar, Videoland and Pop the Dots.

Follow on Feedly