Most of the delegate protocols in the UIKit library already have reactive methods designed to convert the delegate into Observables. For those types in other libraries that haven’t been converted or if you are having to convert legacy code, you can create your own delegate proxy using the tools contained in the RxCocoa library.

The way you convert the delegate into Observables depends very much on the kinds of delegate methods and some of them simply can’t be converted. …

Daniel Tartaglia

I started programming as a hobby in the late ’70s and professionally in the late ’90s. I am the director of development at Haneke Design.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store