Releases: orchetect/MacControlCenterUI
Releases · orchetect/MacControlCenterUI
2.7.1
Added
MenuCommand: Addedstyle,heightandspacinginit parametersMenuCommand: Addedactionproxy parameter tolabelclosure (to allow calling the action body within the label)MenuCommandStyle: AddedplaincaseMenuItemSize: Added auto(verticalPadding:) caseMenuItemSize: AddedverticalPaddingparameter tocustomcase
Changed
MenuCommand: Reordered parameters for init withlabelclosure to be consistent with similar SwiftUI views
Deprecated
- MenuCommand: Deprecated
menuCommandStyle()view modifier in favor of initstyleparameter.
2.7.0
Added
- Added static constructors for existing concrete
MenuSliderImagetypes - Added new
EmptySliderImageslider image type (.empty) - Added new
MinMaxSliderImageslider image type (.minMax(min:max:)and.minMax(minSystemName:maxSystemName:)) - Added new
macControlCenterMenuResizeanimation constant MenuSection: Added content builder to initializers so sections can be treated as encapsulated views with their own geometryMenuSectionText: Added init overloads forLocalizedStringKeyandLocalizedStringResourceMenuScrollView: AddeddisableScrollIfFullContentIsVisibleparameter to initializer
Fixes
MenuHeader: Fixed ambiguous label-only inits
Improvements
- Support for macOS 26 (#12)
- Refined menu window resize animation behavior (#13)
MenuSlider: Now adopts macOS 26 menu slider style when running on that platform
MacControlCenterMenunow gains awidthparameter, defaulting to standard system menu width for the current platformMacControlCenterMenunow automatically limits its height to available screen height and enables menu scrolling if the menu content exceeds the available screen heightMenuHeader: Now sizes itself as wide as possible instead of sizing only to text width when using a label-only initMenuDisclosureGroup: Toggling disclosure triangle now animates contents appearing and disappearing, mimicking macOS menu behaviorMenuSlider: Refactored for more consistent image handling
Changes
MenuSliderImageprotocol has been restructured to be more intuitiveMenuCircleButton: Changed order of parameters in initializers that contain a label closure to be more consistent with standard SwiftUI views
Maintenance
- Updated demo project
2.6.0
2.5.0
2.4.2
2.4.1
2.4.0
Fixes
MenuSection: Now applies text formatting toinitwithlabelclosure parameter consistent with otherinitsMenuDisclosureSection: Now applies text formatting toinits withlabelclosure parameter consistent with otherinits
Changes
MenuDisclosureSection: Reordered parameters forinits that takelabelclosure parameter to be more consistent with SwiftUI API
2.3.3
Improvements
MenuCommand: When using a window-based MenuBarExtra, the menu window now closes before invoking the command action to prevent menu from being stuck on-screen during a long-running action blockMenuCommand: Enabled blink effect after clicking menu command, to match macOS Control Center menu UI behavior