Skip to content

Instantly share code, notes, and snippets.

@schwa
Last active January 31, 2024 02:45
Show Gist options
  • Save schwa/e417d99e766dfc443d2ae67b3108109d to your computer and use it in GitHub Desktop.
Save schwa/e417d99e766dfc443d2ae67b3108109d to your computer and use it in GitHub Desktop.
SwiftUI for macOS Missing Features

https://mastodon.social/@schwa/111801520286334341

My list:

  • Tap location for contextual menus. A lot of apps need to know exactly where a context menu is being triggered from (e.g. canvas style editors etc).
  • Modifier key observation during button presses/gestures etc.
  • Cursor support
  • Native Undo Manager support (SwiftUI has Environment.undoManager but it just exposes Cocoa's UndoManager which doesn't feel very SwiftUI like).
  • Expanded File Dialog options (e.g. adding buttons to the dialog).
  • The outline variant of List (List(… children: …)) is missing a lot of the flexibility of NSOutlineView (TODO: flesh this out with concrete example).
  • There's no column based NSOutlineView replacement, there's either Table or List (with children). They do not mix. (Use DisclosureTablsRow - see https://mastodon.social/@tapforms/111803560216020693)
  • No support for user customisable toolbars (ala, NSToolbar). No user control for toolbar size/labels etc. Give your toolbars and toolbar items ids. - see https://mastodon.social/@clarko/111805402419509151

Other folks:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment