inputAccessoryViews should respect safe area inset with external keyboard on iPhone X

Number:rdar://34411433 Date Originated:
Status:Open Resolved:
Product:iOS + SDK Product Version:Xcode Version 9.0 (9A235)
Classification:Bug - UI/Usability Reproducible:Always


If a UIResponder view (text field, text view, etc.) provides an inputAccessoryView and an external keyboard is attached, the inputAccessoryView is drawn by the system pinned to the bottom of the screen and does not respect the safe area insets of the current context.

This is a noticeable problem on the new iPhone X, where the input accessory view is clipped by and conflicts with the space reserved for the home button swipe.

Steps to Reproduce:

Launch attached sample project in iPhone X simulator, hide on-screen keyboard if visible.

Expected Results:

When on-screen keyboard is hidden due to attached external keyboard (or CMD-K in Simulator), the input accessory view should be pinned to the bottom of the current context's safe area insets, not the bottom of the screen to avoid conflicts with home button area on iPhone X.

Actual Results:

Input accessory view (red background) maintains it's 44.0pt height pinned to bottom of screen behind home button area.


Xcode Version 9.0 (9A235) + Simulator.  No hardware available to test at this time.


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!