From a737c61d159268da4110676030800deec14b60a5 Mon Sep 17 00:00:00 2001 From: Thomas Ricouard Date: Sat, 13 Jan 2024 15:50:20 +0100 Subject: [PATCH] Add window default size --- IceCubesApp/App/Main/IceCubesApp+Scene.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/IceCubesApp/App/Main/IceCubesApp+Scene.swift b/IceCubesApp/App/Main/IceCubesApp+Scene.swift index 04368a0a..461f5fb7 100644 --- a/IceCubesApp/App/Main/IceCubesApp+Scene.swift +++ b/IceCubesApp/App/Main/IceCubesApp+Scene.swift @@ -49,6 +49,11 @@ extension IceCubesApp { } .withModelContainer() } + #if targetEnvironment(macCatalyst) + .defaultSize(width: userPreferences.showiPadSecondaryColumn ? 1100 : 800, height: 1400) + #elseif os(visionOS) + .defaultSize(width: 800, height: 1200) + #endif .commands { appMenu }