title: Animate the keyboard in sync with the UIView while edge-swiping back in iOS7
body: <p>I'd like to get the behavior similar to Messages app (also common in most texting apps) in iOS7, where in a conversation view swiping right from the left edge of the screen would behave like the back button in a UINavigationController.</p>
  
  <p>I have managed to implement this behavior, however, if the keyboard is open in the presenting view, when I start swiping back, the keyboard gets stuck and does not animate with the view to the right as I move my finger. I'd like to animate keyboard and the presenting view as one unit, not as if keyboard is on top of the other views and they are animating behind it, which is what I get now (see the second screenshot):</p>
  
  <p>(<strong>UPDATE:</strong> Note that the keyboard will eventually go away after the main view animation is finished; what I am focused on is the position of keyboard <strong>during</strong> the swipe process, and when you keep touching the device half of the way, which is not in sync with the actual view. The second screenshot clarifies this desired behavior. I also wonder why it is not the default.)</p>
  
  <p>It is easy to replicate the issue by simply creating a new master-detail iPhone app in Xcode 5.0.2 and adding a Text Field to the detail view (preferably somewhere in the upper half) in the StoryBoard, running the app, adding an item, tapping on it to go to the detail view and clicking on the text field you added. Edge-swipe from the left side of the device while keeping your finger on it and you'll see the issue.</p>
  
  <p>Desired behavior:</p>
  
  <p><img src="https://i.stack.imgur.com/E6OYq.png" alt="Desired behavior"></p>
  
  <p>Current behavior:</p>
  
  <p><img src="https://i.stack.imgur.com/5gjS7.png" alt="Keyboard tearing"></p>