title: iOS - Set location of Keyboard with CustomGestureRecognizer
body: <p>Apps like 'iMessage' and 'Facebook Messenger' allow users to move the keyboard off the screen by swiping downward. I was able to set other views to move around the screen with a CustomGestureRecognizer. (snippet below)</p>
  
  <pre><code>    override func touchesMoved(touches: Set&lt;UITouch&gt;, withEvent event: UIEvent) {
  
          let window = view?.window
          if state == .Failed {
              return
          } else if let loc = touches.first?.locationInView(window) {
              displacement = loc.y - swipeStartingY
              delegatePass?.didSlowSwipe(displacement)
              state = .Changed
          }
          super.touchesMoved(touches, withEvent: event)
      }
  </code></pre>
  
  <blockquote>
    <p>How do these apps set the frame.origin.y of the keyboard to move it
    down and off the screen?</p>
  </blockquote>
  
  <p>--Solved</p>
  
  <blockquote>
    <p>How do I get my UITextView that sits above the keyboard to follow the keyboard, now that <code>scrollView.keyboardDismissMode = .Interactive</code>?</p>
  </blockquote>