Skip to content

Commit

Permalink
Minimum app size set to ease taking screenshots for AppStore
Browse files Browse the repository at this point in the history
  • Loading branch information
philips77 committed Mar 2, 2023
1 parent 7250ab1 commit e257e80
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Example/nRFBlinky/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit e257e80

Please sign in to comment.