<div dir="ltr"><div class="gmail_extra">On Thu, Mar 31, 2016 at 10:56 AM, Thorsten Seitz via swift-evolution <span dir="ltr">&lt;<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>&gt;</span> wrote:<br></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word"><div style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(131,148,150)"><div style="margin:0px;line-height:normal;min-height:15px"><br></div><div style="margin:0px;line-height:normal"><span style="color:rgb(133,153,1)">protocol</span><span> UIGestureRecognizerDelegate {</span></div><div style="margin:0px;line-height:normal"><span>    </span><span style="color:rgb(133,153,1)">var</span><span> gestureRecognizerShouldBegin: ((gestureRecognizer: </span><span style="color:rgb(181,137,1)">UIGestureRecognizer</span><span>) -&gt; </span><span style="color:rgb(181,137,1)">Bool</span><span>)? { </span><span style="color:rgb(133,153,1)">get</span><span> }</span></div><div style="margin:0px;line-height:normal"><span>}</span></div></div></div></blockquote><div><br></div><div>UIGestureRecognizerDelegate has five methods that are &quot;named&quot; gestureRecognizer:</div><div><br></div><div>







<p class=""></p><ul><li><span class="">gestureRecognizer(_:</span><span class="">shouldRecognizeSimultaneouslyWithGestureRecognizer:</span><span class="">)</span><br></li><li><span class="">gestureRecognizer(_:</span><span class="">shouldRequireFailureOfGestureRecognizer:)</span><br></li><li><span class="">gestureRecognizer(_:</span><span class="">shouldBeRequiredToFailByGestureRecognizer:)</span><br></li><li><span class="">gestureRecognizer(_:</span><span class="">shouldReceiveTouch:</span><span class="">)</span><br></li><li><span class="">gestureRecognizer(_:</span><span class="">shouldReceivePress:</span><span class="">)</span><br></li></ul><p></p>


</div><div>You can only have a single property named &quot;gestureRecognizer&quot;, so you either have to come up with other names for these, or change the language to allow closure-typed properties to have multipart names.</div><div><br></div><div>This problem has been noted before, for example here: <a href="http://article.gmane.org/gmane.comp.lang.swift.evolution/8707/">http://article.gmane.org/gmane.comp.lang.swift.evolution/8707/</a></div><div><br></div></div></div></div>