On devices running iOS 13, the popover shadow is no longer shows. This happens when the popover is shown on a ViewController that contains a custom UIView with a CAEAGLLayer backing layer directly under it.
I know CAEAGLLayer is deprecated in iOS 13 but there must be a way to resolve this.
Funny enough when taking a screenshot to show here the issue the shadow shows up on the screenshot! So weird...
I tried creating a custom UIPopoverBackgroundView and the shadow set in it worked fine.
UIPopoverPresentationController *popoverController = viewController.popoverPresentationController;
popoverController.permittedArrowDirections = UIPopoverArrowDirectionDown;
popoverController.popoverBackgroundViewClass = [PopoverBackgroundView class];
Any tips or ideas would be greatly appreciated! I spent all day trying to figure this one out. :/

