title: overload gestureRecognizerShouldBegin with UIPanGestureRecognizer in swift
body: <p>I have a pan gesture and I need to check when the gesture should begin. In objective-C you can use</p>
  
  <pre><code>- (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer
  </code></pre>
  
  <p>and it possible to overload with UIPanGestureRecognizer</p>
  
  <pre><code>- (BOOL)gestureRecognizerShouldBegin:(UIPanGestureRecognizer *)gestureRecognizer
  </code></pre>
  
  <p>but in swift </p>
  
  <pre><code>override func gestureRecognizerShouldBegin(gestureRecognizer: UIPanGestureRecognizer) -&gt; Bool {
  </code></pre>
  
  <p>it doesn't work and return </p>
  
  <p>Overriding method with selector 'gestureRecognizerShouldBegin:' has incompatible type '(UIPanGestureRecognizer) -> Bool'</p>
  
  <p>How can I overload this method in swift?</p>