We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18dd06c commit b33da62Copy full SHA for b33da62
WooCommerce/Classes/Extensions/UIApplication+Woo.swift
@@ -30,6 +30,11 @@ extension UIApplication {
30
.first { $0.isKeyWindow }
31
}
32
33
+ /// Returns the delegate of the first connected scene.
34
+ ///
35
+ /// - Note: This approach is valid while the app supports only a single scene.
36
+ /// If multi‑window support is introduced in the future,
37
+ /// this will need to be revisited to handle multiple scenes safely.
38
static var sceneDelegate: SceneDelegate? {
39
UIApplication.shared.connectedScenes
40
.compactMap({ $0 as? UIWindowScene })
0 commit comments