iMessage app sets wrong adjustedContentInset

Number:rdar://35862562 Date Originated:05-Dez.-2017 10:05 PM
Status:Open Resolved:
Product:iOS + SDK Product Version:11.2
Classification:UI/Usability Reproducible:Always
In simple iMessage app with an embedded UITableViewController the contentInset is messed up after setting the app to .expanded presentation style and then back to .compact.

Steps to Reproduce:
Run the attached sample project.
Verify that the table view insets are OK.
Expand the UI by dragging the divider.
Verify that the table view insets are OK.
Compact the UI by dragging the divider.

Expected Results:
When scrolling the table view, the insets should still be correct.

Actual Results:
The bottom inset is off by 214 points.


See the screencast movie.
We tried to come up with a workaround and couldn't find one. Specifically, setting the tableView's contentInsetAdjustmentBehavior to .never doesn't help. Trying to correct the wrong adjustedContentInset by modifying the contentInset creates a feedback loop.


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!