Skip to content

v2.1.0

Compare
Choose a tag to compare
@j-f1 j-f1 released this 22 Feb 20:47
· 6 commits to main since this release
v2.1.0
60d3b9a

Check out the new API docs! https://menubuilder.jedfox.com

New Features:

  • Add action and tag modifiers (Thanks @patr0nus!)
  • Update the SwiftUI custom view wrapper to use Auto Layout (Thanks @rurza!)
  • Add support for menu item titles using AttributedString on macOS 12+
  • Add a convenience initializer to NSMenu that takes a title and an @MenuBuilder closure
  • Deprecate the MenuItem(_:children:) initializer in favor of MenuItem(title).submenu { ... children ... }
  • Add an onSelect(target:action:) convenience method to set the target and action at the same time.

Bugfixes:

  • Update the SwiftUI custom view wrapper’s selection indicator to match the menu styling of macOS Big Sur and later (Thanks @rurza!)
  • Make the parameter to toolTip optional (Thanks @mlch911!)
  • update() is now called on an NSMenu when you use the replaceItems API