How do I hide the status bar in an iOS app without causing the UINavigationBar to jump?
问题 I have a view controller that needs to hide the status bar before presenting a modal and after that modal is dismissed. This is not as simple as overriding prefersStatusBarHidden and then setting modalPresentationCapturesStatusBarAppearance because that will also cause a jump given I am presenting over the current context (the modal is a pull down to dismiss). Consider the instagram story UX, as an example. When tapping on a story, you actually see the status bar disappear before the story