Post

Replies

Boosts

Views

Activity

Comment on iPhone 14 pro with dynamic island status bar issue
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) }
Sep ’22