Skip to content

Commit 60d3b9a

Browse files
committed
v2.1.0 changelog
1 parent 6c89ea9 commit 60d3b9a

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

+19
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,25 @@ Note that there is no way to preserve the existing menu items, although it shoul
3333

3434
## Changelog
3535

36+
### v2.1.0
37+
38+
Check out the new API docs! https://menubuilder.jedfox.com
39+
40+
New Features:
41+
42+
* Add `action` and `tag` modifiers (Thanks @patr0nus!)
43+
* Update the SwiftUI custom view wrapper to use Auto Layout (Thanks @rurza!)
44+
* Add support for menu item titles using `AttributedString` on macOS 12+
45+
* Add a convenience initializer to `NSMenu` that takes a `title` and an `@MenuBuilder` closure
46+
* Deprecate the `MenuItem(_:children:)` initializer in favor of `MenuItem(title).submenu { ... children ... }`
47+
* Add an `onSelect(target:action:)` convenience method to set the `target` and `action` at the same time.
48+
49+
Bugfixes:
50+
51+
* Update the SwiftUI custom view wrapper’s selection indicator to match the menu styling of macOS Big Sur and later (Thanks @rurza!)
52+
* Make the parameter to `toolTip` optional (Thanks @mlch911!)
53+
* `update()` is now called on an `NSMenu` when you use the `replaceItems` API
54+
3655
### v2.0.0
3756
* (**BREAKING**) Migrate to `@resultBuilder` (Xcode 12.5+ is now required)
3857
* Apply modifiers to shortcuts

0 commit comments

Comments
 (0)