title: iPhone X how to handle View Controller inputAccessoryView?
body: <p>I have a messaging app that has the typical UI design of a text field at the bottom of a full screen table view. I am setting that text field to be the view controller's <code>inputAccessoryView</code> and calling <code>ViewController.becomeFirstResponder()</code> in order to get the field to show at the bottom of the screen.</p>
  
  <p>I understand this is the Apple recommended way of accomplishing this UI structure and it works perfectly on "classic" devices however when I test on the iPhone X simulator I notice that using this approach, the text field does not respect the new "safe areas". The text field is rendered at the very bottom of the screen underneath the home screen indicator.</p>
  
  <p>I have looked around the the HIG documents but haven't found anything useful regarding the <code>inputAccessoryView</code> on a view controller. </p>
  
  <p>It's difficult because using this approach I'm not actually in control of any of the constraints directly, I'm just setting the <code>inputAccessoryView</code> and letting the view controller handle the UI from there. So I can't just constrain the field to the new safe areas.</p>
  
  <p>Has anyone found good documentation on this or know of an alternate approach that works well on the iPhone X?</p>
  
  <p><a href="https://i.stack.imgur.com/mMFP5.png" rel="noreferrer"><img src="https://i.stack.imgur.com/mMFP5.png" alt="enter image description here"></a></p>