I was looking for an easier way to pass function as parameter into Observable's subscribe
method without causing retain cycle; I don't want to always have to use [weak self]
every single time. I've just come across this answer, and it's exactly what I want. Even better, it's already being merged into the framework itself. However, I don't seem to find a similar method for Driver
.
Has it already been implemented, and I'm just looking at the wrong place? If not, can you guide me how to add it? ... As a side note, how do you normally deal with all the [weak self]
everywhere?