Skip to content

Commit b33da62

Browse files
committed
Just a bit of doc
1 parent 18dd06c commit b33da62

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

WooCommerce/Classes/Extensions/UIApplication+Woo.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ extension UIApplication {
3030
.first { $0.isKeyWindow }
3131
}
3232

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.
3338
static var sceneDelegate: SceneDelegate? {
3439
UIApplication.shared.connectedScenes
3540
.compactMap({ $0 as? UIWindowScene })

0 commit comments

Comments
 (0)