reports icon indicating copy to clipboard operation
reports copied to clipboard

FB7868792: WindowGroup should cover the essentials on macOS

Open sindresorhus opened this issue 5 years ago • 2 comments

  • 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 SingleWindow scene view instead of WindowGroup.
  • 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 avatar Jul 08 '20 15:07 sindresorhus

@sindresorhus Any updates from Apple?

PaulSolt avatar Jan 12 '24 14:01 PaulSolt

No

sindresorhus avatar Jan 12 '24 15:01 sindresorhus