Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Dream API for macOS menu bar apps
@main
struct MyApp: App {
var body: some Scene {
StatusBar {
StatusItem(id: "foo", systemImage: "gear") {
Menu {
Button("Toggle") {}
Divider()
Button("Quit") {}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment