2

I'm trying to remove the dimming view behind a popover presented using UIPopoverPresentationController. I've implemented a custom UIPopoverBackgroundView, but there doesn't seem to be a way to get rid of this dimming view.

I've tracked the dimming view to a "_UIMirrorNinePatchView" using the view hierarchy inspector, but there's no good way of removing it short of crawling through the subviews of UIWindow and manually removing this view from its superview. This approach is flawed as it briefly flashes the dimming view before it's removed.

Any suggestions?

Jimmy Xu
  • 689
  • 1
  • 5
  • 14

1 Answers1

-1

Set the backgroundColor property to .clear

popOverPresentationController.backgroundColor = .clear

jjatie
  • 5,152
  • 5
  • 34
  • 56
  • This doesn't work, unfortunately. Also, the documentation states that this property sets the backgroundColor of the Popover itself, not that of the dimmingView. – Jan Nash Jul 19 '17 at 18:35