Something went wrong. Try again.
Mirror — see github.com/blacksky-algorithms/blacksky.community
Something went wrong. Try again.
12345678910111213141516171819//// Util.swift// Pods//// Created by Hailey on 10/2/24.//
class Util { static func getScreenHeight() -> CGFloat? { if let windowScene = UIApplication.shared.connectedScenes.first as? UIWindowScene, let window = windowScene.windows.first { let safeAreaInsets = window.safeAreaInsets let fullScreenHeight = UIScreen.main.bounds.height return fullScreenHeight - (safeAreaInsets.top + safeAreaInsets.bottom) } return nil }}