Having an inputAccessoryView causes a white transition when pushing UIViewController

Originator:therealcykey
Number:rdar://31770897 Date Originated:21-Apr-2017
Status:Open Resolved:
Product:iOS + SDK Product Version:10.2 14C89
Classification:UIKit Reproducible:Always
 
Area:
UIKit

Summary:
When you override `inputAccessoryView` to provide a view and also override `canBecomeFirstResponder` to return YES, the UIViewController push transition turns the screen white.

See video: https://youtu.be/jYnXyajylwk

Steps to Reproduce:
1. Create a UIViewController subclass.
2. Override `inputAccessoryView` to return a view (e.g. UIToolbar).
3. Override `canBecomeFirstResponder` to return YES
4. Push UIViewController through a `UINavigationController`.

Expected Results:
During the transition, the view of the `UIViewController` should be shown.

Actual Results:
During the transition, the view becomes white until the transition is over, at which point the UIViewController's view finally becomes visible. (See video https://youtu.be/jYnXyajylwk).

Version:
iOS 10.2 14C89

Notes:


Configuration:
iPhone 7

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!