File tree 1 file changed +19
-0
lines changed
1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,25 @@ Note that there is no way to preserve the existing menu items, although it shoul
33
33
34
34
## Changelog
35
35
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
+
36
55
### v2.0.0
37
56
* (** BREAKING** ) Migrate to ` @resultBuilder ` (Xcode 12.5+ is now required)
38
57
* Apply modifiers to shortcuts
You can’t perform that action at this time.
0 commit comments