From e257e80a0fa14ea2f6e315f61dec8257ddfac16b Mon Sep 17 00:00:00 2001 From: Aleksander Nowakowski Date: Thu, 2 Mar 2023 15:27:56 +0100 Subject: [PATCH] Minimum app size set to ease taking screenshots for AppStore --- Example/nRFBlinky/AppDelegate.swift | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Example/nRFBlinky/AppDelegate.swift b/Example/nRFBlinky/AppDelegate.swift index 7023b5d..dfe8675 100644 --- a/Example/nRFBlinky/AppDelegate.swift +++ b/Example/nRFBlinky/AppDelegate.swift @@ -72,6 +72,13 @@ class AppDelegate: UIResponder, UIApplicationDelegate { } #endif + #if os(macOS) + // Setting minimum size to 1440x900 px (needed for Screenshots) + UIApplication.shared.connectedScenes.compactMap { $0 as? UIWindowScene }.forEach { windowScene in + windowScene.sizeRestrictions?.minimumSize = CGSize(width: 608, height: 338) + } + #endif + return true }