reports
reports copied to clipboard
FB7868792: WindowGroup should cover the essentials on macOS
- Date: 2020-07-08
- Resolution: Open
- Area: SwiftUI Framework
- OS: macOS 11 beta 2
- Type: Suggestion
Description
The new WindowGroup has awesome potential, but it’s also missing a lot of common functionality, especially for making macOS apps.
Some common things it’s missing (for macOS):
- Indicate that only one window is allowed. And hence disable the tab menu items. It doesn’t make sense for all apps to support multiple windows. Could be indicated using a modifier or using a
SingleWindowscene view instead ofWindowGroup. - Prevent fullscreen. Some apps doesn’t make sense in fullscreen. For example, a calculator. Basically, be able to set
NSWindow#collectionBehavior. - Make the window movable by dragging anywhere in the window. (
NSWindow#isMovableByWindowBackground) - Window aspect ratio. Some apps need to enforce a certain aspect ratio. Calculator, video player, etc.
- Window level.
@sindresorhus Any updates from Apple?
No