Show/hide SwiftUI MenuBarExtra menu using Bindings, access the underlying status item, and more.
-
Updated
Apr 19, 2026 - Swift
Show/hide SwiftUI MenuBarExtra menu using Bindings, access the underlying status item, and more.
Sample macOS code that adds a button to the menu bar using NSStatusBar.
macOS app showing from which device output comes from.
macOS menu bar app — toggle MacBook keyboard backlight with a click, auto-off when a game controller connects. Apple Silicon, macOS Sonoma+, pure Swift, zero dependencies.
Add a description, image, and links to the nsstatusitem topic page so that developers can more easily learn about it.
To associate your repository with the nsstatusitem topic, visit your repo's landing page and select "manage topics."