UITableViewCell contentView is misplaced when navigation bar hidesBarsOnSwipe is enabled

Originator:dfedoseyev
Number:rdar://47732838 Date Originated:
Status:Open Resolved:
Product:iOS Product Version:11 +
Classification:UIKit Reproducible:Always
 
Summary:
On large screen devices like iPhone 7/8 Plus and iPhone X, Xs, Xs Max UITableViewCell contentView is misaligned for some cells. This happens when the cell is instantiated from a xib and the tableview is wrapped inside a navigation controller which has hidesBarsOnSwipe enabled.

Steps to Reproduce:
Sample project: https://github.com/gzerad/uitableviewrdar
Build and launch the attached project on iPhone X simulator. Scroll to the bottom of the table view.

Expected Results:
All cells are aligned equally

Actual Results:
One before last cell is misaligned 

Version/Build:
iOS 11 and up

Configuration:
Default

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!