Hi,
There is this extra space/gap between the status bar and the safe area(under dynamic island) in iPhone 14 Pro and Pro max. Which seems to be an OS issue. Yet if anyone has any fix for this please do help.
Hi,
For this, I got a permanent solution. Please check this out
Code:
if #available(iOS 13.0, *) {
let window = UIApplication.shared.windows.first
let topPadding = window?.safeAreaInsets.top
let statusBar = UIView(frame: CGRect(x: 0, y: 0, width: UIScreen.main.bounds.size.width, height: topPadding ?? 0.0))
statusBar.backgroundColor = UIColor(named: "AppPrimaryColor")
UIApplication.shared.windows.filter {$0.isKeyWindow}.first?.addSubview(statusBar)
}
Use this and thank me later.