Closed harish-suthar closed 1 year ago
extension UIViewController {
var topBarHeight: CGFloat {
var top = self.navigationController?.navigationBar.frame.height ?? 0.0
if #available(iOS 13.0, *) {
top += UIApplication.shared.windows.first?.windowScene?.statusBarManager?.statusBarFrame.height ?? 0
} else {
top += UIApplication.shared.statusBarFrame.height
}
return top
}
}
sheetController.minimumSpaceAbovePullBar = presentingViewController.topBarHeight
@nunojfg This is not working for it instead increases the above space, what I want to do is make it full screen without any space above.
For fullscreen mode is there any way to remove the top spacing between the pull bar and screen top area for devices with a notch?
See screenshot below for reference.