inputAccessoryView on a UIViewController is too low on an iPhone X

Originator:tolar
Number:rdar://34694827 Date Originated:2017-09-27
Status:Closed Resolved:
Product:iPhone X Product Version:iOS 11
Classification: Reproducible:yes
 
Area:
UIKit

Summary:
We're using the `inputAccessoryView` as part of our `UIViewController`, but the placement of it by UIKit puts it within the restricted area of the bottom of an iPhone X. I've included a sample project that reflects what happens.

Steps to Reproduce:
1. Use an iPhone X.
2. Create a UIViewController subclass with a `inputAccessoryView`.

Expected Results:
The `inputAccessoryView` should not overlay the new restricted area at the bottom of the iPhone X.

Actual Results:
The `inputAccessoryView` is flush with the bottom of the iPhone X.
 

Version/Build:
iPhone X simulator running iOS 11 from Xcode 9

Comments

This is still a bug in the current Xcode 9 final release.

By carmelo.gallo at Sept. 29, 2017, 10:35 a.m. (reply...)

I was able to resolve this by using layout margins guide instead of the view's own top/bottom anchors!

I'm also seeing this on iOS 11.1 beta with Xcode 9.1 beta


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com 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!