UINavigationBar in UIPopoverPresentationController doesn't mask corner radius correctly

Originator:tom.hamming
Number:rdar://28288985 Date Originated:9-13-2016
Status:Open Resolved:
Product:UIKit Product Version:10
Classification:UI/Usability Reproducible:Always
 
Summary:
When a UINavigationController is in a UIPopoverPresentationController, its navigation bar doesn't correctly mask its corner radius to match the popover's, and the popover's background color shows through around the edge. Interestingly, it gets more noticeable if there's an image-based subview in that corner of the navigation bar (like a UIImageView or UIButton with an image set).

Steps to Reproduce:
-Run attached sample project on a Retina iPad simulator
-Observe top-right corner of the popover. For more clarity, uncomment the relevant portion of viewDidAppear in PresentedViewController.mm.

Expected Results:
The popover's red background color should not show around the navigation bar's top right corner

Actual Results:
Red is visible.

Version:
iOS 10 GM

Notes:


Configuration:
iPad Air (or other Retina iPad)

Images to clarify:
https://s21.postimg.org/m2e7l9v13/With_Button.png
https://s21.postimg.org/x39cqan9z/Without_Button.png

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!