Simple UIGestureRecogniser example with ReactiveCocoa 4
<p>Struggling to get a simple ReactiveCocoa 4 example working.</p>

<ul>
<li>I have pan gesture recogniser for a view in my hierarchy.</li>
<li>I have an intended destination class for my touch events (lets assume I want to generate network packets based on the touch position).</li>
</ul>

<p>So it seems like a I want to create a signal from my gesture recogniser, map to extract the touch position relative to some view, then have my destination class observe this signal (or just have some final subscribeNext block that calls a method on my destination class).</p>

<p>However, can't seem to get anything working nor find a good example to follow.</p>

<p>I think I should be writing something like this (psuedo-code)</p>

<pre><code>panRecognizer
    .rac_gestureSignal()
    .map { (pgr:UIPanGestureRecognizer) -&gt; CGPoint in
        return pgr.locationInView(self.someUiView)
    }.subscribeNext { (location: CGPoint) -&gt; Void in
        self.someNetworkDelegate.updatePosition(location)
    }
</code></pre>

<p>Is such a thing possible (it seems simple enough)? Am I perhaps trying to use the framework in a bad way?</p>