ReactiveCocoa Swift extensions using generics

If you want to use generic types and ReactiveCocoa before ReactiveCocoa 3.0 be officially released then you can use the extensions below:

It’s a very simple code snippet extending subscribeNext  and filter  functions but it can be improved adding extensions for other methods.

Credits to Colin Eberhardt on this post.

I also created a gist for this extension and i intend to keep it updated, check it out and leave your comments.

Facebooktwittergoogle_plusredditpinterestlinkedinmailby feather

Leave a Reply

Your email address will not be published. Required fields are marked *