On iOS 14, when presenting a modal navigation controller, non full screen, with UIPresentationController and modalPresentationStyle custom, the navigation bar take account into the safe area top inset (even if prefersStatusBarHidden is true). So, there is a gap equal to the status bar height at the top of the presented view.
Any ideas?
Fixed using the private API method
_viewSafeAreaInsetsFromScene
.