title: Prevent UIButton Long Press Repeating Function
body: <p>The following UILongPressGestureRecognizer code works, however it repeatedly runs the long() press function when the button is held.  I'd like to have it only run one time while the user is pressing.  Is this possible?</p>
  
  <pre><code>override func viewDidLoad() {
  
      let tapGesture = UITapGestureRecognizer(target: self, action: #selector (tap))  
      let longGesture = UILongPressGestureRecognizer(target: self, action: #selector(long))  
      tapGesture.numberOfTapsRequired = 1
      shiftBtn.addGestureRecognizer(tapGesture)
      shiftBtn.addGestureRecognizer(longGesture)
  }
  
  @objc func tap() {
      print("Short Tap")
  }
  
  @objc func long() {
      print("Long press")
  }
  </code></pre>
  
  <p>Thanks!</p>