Reply to How can I get the safeAreaInsets in iOS 15? You can use this extension UIApplication { static var yourNameByValue: UIEdgeInsets { let scene = UIApplication.shared.connectedScenes.first as? UIWindowScene return scene?.windows.first?.safeAreaInsets ?? .zero } } UI Frameworks UIKit Sep ’22