Skip to content

Commit e257e80

Browse files
committed
Minimum app size set to ease taking screenshots for AppStore
1 parent 7250ab1 commit e257e80

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Example/nRFBlinky/AppDelegate.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
7272
}
7373
#endif
7474

75+
#if os(macOS)
76+
// Setting minimum size to 1440x900 px (needed for Screenshots)
77+
UIApplication.shared.connectedScenes.compactMap { $0 as? UIWindowScene }.forEach { windowScene in
78+
windowScene.sizeRestrictions?.minimumSize = CGSize(width: 608, height: 338)
79+
}
80+
#endif
81+
7582
return true
7683
}
7784

0 commit comments

Comments
 (0)