summaryrefslogtreecommitdiff
path: root/Jel/Controllers/UIScreenCurrent.swift
diff options
context:
space:
mode:
authorShav Kinderlehrer <[email protected]>2024-02-21 12:20:24 -0500
committerShav Kinderlehrer <[email protected]>2024-02-21 12:20:24 -0500
commitce0be87c7f39e9763d835a685cb65eb38c7e68c3 (patch)
treea548887701d035f40923de1838317d213a8a2532 /Jel/Controllers/UIScreenCurrent.swift
parent53b079259556532569af3af0e3b15aa887adbfd4 (diff)
downloadjel-ce0be87c7f39e9763d835a685cb65eb38c7e68c3.tar.gz
jel-ce0be87c7f39e9763d835a685cb65eb38c7e68c3.zip
Cleanup + change SignInView to be a sheet
Diffstat (limited to 'Jel/Controllers/UIScreenCurrent.swift')
-rw-r--r--Jel/Controllers/UIScreenCurrent.swift28
1 files changed, 0 insertions, 28 deletions
diff --git a/Jel/Controllers/UIScreenCurrent.swift b/Jel/Controllers/UIScreenCurrent.swift
deleted file mode 100644
index 86d4ca0..0000000
--- a/Jel/Controllers/UIScreenCurrent.swift
+++ /dev/null
@@ -1,28 +0,0 @@
-//
-// UIScreenCurrent.swift
-// Jel
-//
-// Created by zerocool on 1/8/24.
-//
-
-import Foundation
-import SwiftUI
-
-extension UIWindow {
- static var current: UIWindow? {
- for scene in UIApplication.shared.connectedScenes {
- guard let windowScene = scene as? UIWindowScene else { continue }
- for window in windowScene.windows {
- if window.isKeyWindow { return window }
- }
- }
- return nil
- }
-}
-
-
-extension UIScreen {
- static var current: UIScreen? {
- UIWindow.current?.screen
- }
-}