Skip to content

Commit

Permalink
v2.1.0 changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
j-f1 committed Feb 22, 2023
1 parent 6c89ea9 commit 60d3b9a
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,25 @@ Note that there is no way to preserve the existing menu items, although it shoul

## Changelog

### v2.1.0

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

### v2.0.0
* (**BREAKING**) Migrate to `@resultBuilder` (Xcode 12.5+ is now required)
* Apply modifiers to shortcuts
Expand Down

0 comments on commit 60d3b9a

Please sign in to comment.