How to use UIWindowScene.windows on iOS 15? [duplicate]

(Tested with iOS 15.2 running on Xcode 13.2.1) Improving on Rachid’s answer, here is a Swiftier version: extension UIApplication { var keyWindow: UIWindow? { // Get connected scenes return UIApplication.shared.connectedScenes // Keep only active scenes, onscreen and visible to the user .filter { $0.activationState == .foregroundActive } // Keep only the first `UIWindowScene` .first(where: { … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)