mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-06-09 00:39:29 +00:00
4189a59cf6
* Initial iOS 17 + Observable migration * More Observation * More observation * Checkpoint * Checkpoint * Bump version to 1.8.0 * SwiftFormat * Fix home timeline switch on login * Fix sidebar routerPath * Fixes on detail view * Remove print changes * Simply detail view * More opt * Migrate DisplaySettingsLocalValues * Better post detail transition * Status detail animation finally right * Cleanup
19 lines
503 B
Swift
19 lines
503 B
Swift
import Combine
|
|
import UIKit
|
|
|
|
@Observable public class SceneDelegate: NSObject, 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
|
|
}
|
|
}
|