Issue
20px high empty/transparent space left after In-Call Status Bar disappears
Normal Status Bar : Fine
In-Call Status Bar : Fine
In-Call Status Bar Leaves : Issue! Leaves a 20px high empty/transparent space at top revealing orange view below. However the status bar is still present over the transparent area. Navigation Bar also leaves space for status bar, its' just 20px too low in placement.
- iOS 10 based
- Modally presented view controller
- Custom Modal Presentation
I tried listening to App Delegates:
willChangeStatusBarFrame
didChangeStatusBarFrameAlso View Controller Based Notifications:
UIApplicationWillChangeStatusBarFrame
UIApplicationDidChangeStatusBarFrameWhen I log the frame of presented view for all four above methods, the frame is always at y:0 origin.
View Controller Presentation
let storyboard = UIStoryboard(name: "StoryBoard1", bundle: nil)
self.modalVC = storyboard.instantiateViewController(withIdentifier: "My Modal View Controller") as? MyModalViewController
self.modalVC!.transitioningDelegate = self
self.modalVC.modalPresentationStyle = .custom
self.modalVC.modalPresentationCapturesStatusBarAppearance = true;
self.present(self.modalVC!, animated: true, completion: nil)