mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-02-05 08:57:31 +01:00
9b3b3692ee
* Support for follow requests (#321) * Run SwiftFormat Co-authored-by: Thomas Ricouard <ricouard77@gmail.com>
18 lines
494 B
Swift
18 lines
494 B
Swift
import UIKit
|
|
|
|
public class SceneDelegate: NSObject, ObservableObject, UIWindowSceneDelegate {
|
|
public var window: UIWindow?
|
|
|
|
public var windowWidth: CGFloat {
|
|
window?.bounds.size.width ?? UIScreen.main.bounds.size.width
|
|
}
|
|
|
|
public func scene(_ scene: UIScene,
|
|
willConnectTo _: UISceneSession,
|
|
options _: UIScene.ConnectionOptions)
|
|
{
|
|
guard let windowScene = scene as? UIWindowScene else { return }
|
|
window = windowScene.keyWindow
|
|
}
|
|
}
|