Custom navigationItem.titleView renders line at the top of labels when assigned a background color on iphone 7plus devices (and simulator)

Originator:gustavosaume
Number:rdar://28897241 Date Originated:
Status: Resolved:
Product:iOS Product Version:10.0
Classification: Reproducible:always
 
Area:
UIKit

Summary:
If you create a custom title view for the navigation bar and inside of this view you add a label and set a background color on that label it will be rendered with a line at the top of it.

Steps to Reproduce:
1. Create a custom view with a label inside
2. set a background color on that label
3. assign that view to the navigationItem.titleView
4. run on an iPhone 7 plus device or simulator


Expected Results:
The label inside of the titleView is displayed with the proper background color

Actual Results:
The label is shown with a horizontal line at the top

Version:
iOS 10.0 and 10.1

Notes:
The zip file contains a sample project with a custom UIView for the titleView... needs to be run on a plus device 

Configuration:
iPhone 7 plus simulator and iPhone 7 plus devices

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!