Theme.swift (360B)
1 // 2 // Theme.swift 3 // damus 4 // 5 // Created by Ben Weeks on 1/1/23. 6 // 7 8 import Foundation 9 import UIKit 10 11 class Theme { 12 13 static var safeAreaInsets: UIEdgeInsets? { 14 return this_app 15 .connectedScenes 16 .flatMap { ($0 as? UIWindowScene)?.windows ?? [] } 17 .first { $0.isKeyWindow }?.safeAreaInsets 18 } 19 }