UIPresentationController present navigation controller view

177 views Asked by At

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?

1

There are 1 answers

2
Patrick Bodet On

Fixed using the private API method _viewSafeAreaInsetsFromScene.