1

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 Answer 1

0

Fixed using the private API method _viewSafeAreaInsetsFromScene.

Sign up to request clarification or add additional context in comments.

2 Comments

But using a private API will get you rejected from the App Store, and then where will you be?
No, not if they are used well! Secretly.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.