In the same theme as this post:
iOS 13 - UIPopoverPresentationController sourceview content visible in the arrow
I have a UITableViewController instantiated
It seems that you are not using the new Safe Area Layout Guides. The old method is deprecated. If you use storyboard please activate this setting in the File tab:
In code you can use something like this:
let guide = view.safeAreaLayoutGuide
NSLayoutConstraint.activate([
greenView.topAnchor.constraintEqualToSystemSpacingBelow(guide.topAnchor, multiplier: 1.0),
guide.bottomAnchor.constraintEqualToSystemSpacingBelow(greenView.bottomAnchor, multiplier: 1.0)
])
For more information read this: https://useyourloaf.com/blog/safe-area-layout-guide/