Force the navigation bar to add space for the status bar
Clash Royale CLAN TAG #URR8PPP Force the navigation bar to add space for the status bar I have a UIPageViewController subclass that allows the user to swipe upward from the initial view controller to a second view controller. The initial view controller does not have a navigation bar (it's not connected to a UINavigationController ), but the second one does. Currently, when I swipe up to present the second view controller, there is no space in the navigation bar for the status bar. When the transition is complete, the entire view controller layout updates instantly to add the status bar space. I want to make the second view controller anticipate that the status bar will be there and add the space for it so the view doesn't jolt after the transition. UIPageViewController UINavigationController Short video clip showing the jolt Similar, but unanswered question EDIT: After closely looking at the way the view controller behaves during the transition, I was able to get a good l...