{"repo":"orchetect/MenuBarExtraAccess","free":true,"listed":false,"github":"https://github.com/orchetect/MenuBarExtraAccess","clone":"git clone https://github.com/orchetect/MenuBarExtraAccess.git","description":"Show/hide SwiftUI MenuBarExtra menu using Bindings, access the underlying status item, and more.","language":"Swift","stars":218,"topics":["macos","macos-ventura","menubar","menubarextra","nsstatusitem","statusitem","swiftui","swift"],"license":"MIT","category":"mobile-apps","readme_excerpt":"MenuBarExtraAccess Gives you Extra access to SwiftUI MenuBarExtra . - Programmatically hide, show, or toggle the menu (by way of a Bool binding) - Programmatically enable or disable the menubar extra (by way of a Bool binding) - Access to the underlying NSStatusItem - Access to the underlying NSWindow (when using the .window style) - Works with one or multiple MenuBarExtra - Works with both menu and window based styles (see Known Issues) Why? MenuBarExtra lacks 1st-party API to get or set the menu presentation state, disable the menubar extra, access the NSStatusItem , or access the popup's NSWindow . (Still as of Xcode 26) Overview - A new .menuBarExtraAccess(isPresented:, isEnabled:) { statusItem in } scene modifier: - a binding to hide/show/toggle the menu - a binding to enabled/disable the menubar extra - direct access to the NSStatusItem if needed - A new .introspectMenuBarExtraWindow { window in } view modifier passing in the NSWindow reference - Window-based menu extra status items now remain highlighted while the window is open so it feels more like a native menu - No private API used, so it's Mac App Store safe Getting Started The library is available as a Swift Package Manager (SPM) package. Use the URL https://github.com/orchetect/MenuBarExtraAccess when adding the library to a project or Swift package. Check out the Examples folder for a demonstration of the package's usage. Known Issues - When using .menuBarExtraStyle(.menu) , SwiftUI causes the popup menu to blo","default_branch":null,"files":null,"tree":[],"storefront":"/r/orchetect","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/orchetect/MenuBarExtraAccess/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}