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 2260ef4 commit 684a4e9Copy full SHA for 684a4e9
1 file changed
Sources/GoodUIKit/UIApplicationExtensions.swift
@@ -20,11 +20,19 @@ public enum UIApplicationUrlType {
20
21
public extension GRUIActive where Base: UIApplication {
22
23
+ /// Returns status bar frame for currently active window.
24
+ /// See: ``activeWindow``
25
+ ///
26
+ /// Important: Use only on main thread.
27
@available(iOS 13.0, *)
28
var currentStatusBarFrame: CGRect? {
29
return activeWindow?.windowScene?.statusBarManager?.statusBarFrame
30
}
31
32
+
33
+ /// First active window for all connected scenes in the application.
34
35
36
37
var activeWindow: UIWindow? {
38
UIApplication.shared.connectedScenes
0 commit comments