iOS 11 modal form sheet frame inaccurate in UIKeyboardWillShow

Originator:mickeyreiss
Number:rdar://33114507 Date Originated:7/3/2017
Status:Open Resolved:
Product:UIKit Product Version:iOS 11.0 beta 2
Classification:Bug Reproducible:YES
 
iOS 11 beta 2, iPad Pro 10.5" Simulator, landscape orientation.

When presenting a view controller modally with the formSheet presentation style, the presented view's frame does not update to reflect the formSheet's vertical keyboard-avoiding motion in the UIKeyboardWillShow notification. It does reflect the change in Y during the UIKeyboardDidShow notification.

This means that it is not possible to keyboard avoidance in sync with the keyboard presentation. 

I'd expect for the presented view's frame to reflect its new position in the UIKeyboardWillShow callback.

Steps to Reproduce:
Please see the attached sample project for a reproduction. Run it on the iPad Pro 10.5" iOS 11 Simulator in LANDSCAPE orientation. Tap the buttons and view the console output to reproduce.

Expected Results:
formSheet's frame excludes change in Y.

Observed Results:
formSheet's frame should reflect change in Y during UIKeyboardWillShow notification.

Version:
iOS 11 beta 2
Xcode 9 beta 2
iOS 11 simulator, iPad Pro 10.5" Landscape

Comments


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!