diff --git a/shortmenu.xcodeproj/project.pbxproj b/shortmenu.xcodeproj/project.pbxproj
index 800da83..18486b9 100644
--- a/shortmenu.xcodeproj/project.pbxproj
+++ b/shortmenu.xcodeproj/project.pbxproj
@@ -274,6 +274,7 @@
ENABLE_HARDENED_RUNTIME = YES;
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
+ INFOPLIST_KEY_LSUIElement = YES;
INFOPLIST_KEY_NSHumanReadableCopyright = "";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
@@ -301,6 +302,7 @@
ENABLE_HARDENED_RUNTIME = YES;
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
+ INFOPLIST_KEY_LSUIElement = YES;
INFOPLIST_KEY_NSHumanReadableCopyright = "";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
diff --git a/shortmenu.xcodeproj/xcshareddata/xcschemes/shortmenu.xcscheme b/shortmenu.xcodeproj/xcshareddata/xcschemes/shortmenu.xcscheme
new file mode 100644
index 0000000..e18a0a9
--- /dev/null
+++ b/shortmenu.xcodeproj/xcshareddata/xcschemes/shortmenu.xcscheme
@@ -0,0 +1,77 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/shortmenu.xcodeproj/xcuserdata/louisgallet.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist b/shortmenu.xcodeproj/xcuserdata/louisgallet.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
new file mode 100644
index 0000000..2597788
--- /dev/null
+++ b/shortmenu.xcodeproj/xcuserdata/louisgallet.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
@@ -0,0 +1,6 @@
+
+
+
diff --git a/shortmenu.xcodeproj/xcuserdata/louisgallet.xcuserdatad/xcschemes/xcschememanagement.plist b/shortmenu.xcodeproj/xcuserdata/louisgallet.xcuserdatad/xcschemes/xcschememanagement.plist
index 40f1224..9c7f105 100644
--- a/shortmenu.xcodeproj/xcuserdata/louisgallet.xcuserdatad/xcschemes/xcschememanagement.plist
+++ b/shortmenu.xcodeproj/xcuserdata/louisgallet.xcuserdatad/xcschemes/xcschememanagement.plist
@@ -10,5 +10,13 @@
0
+ SuppressBuildableAutocreation
+
+ 2C162C7E2A5721BA00C3F8A3
+
+ primary
+
+
+
diff --git a/shortmenu/shortmenuApp.swift b/shortmenu/shortmenuApp.swift
index 708f1a6..7feb0a5 100644
--- a/shortmenu/shortmenuApp.swift
+++ b/shortmenu/shortmenuApp.swift
@@ -9,9 +9,29 @@ import SwiftUI
@main
struct shortmenuApp: App {
+ @State var currentNumber: String = "1"
var body: some Scene {
- WindowGroup {
- ContentView()
+ MenuBarExtra(currentNumber, systemImage: "\(currentNumber).circle") {
+ //3
+ Button("One") {
+ currentNumber = "1"
+ }
+ .keyboardShortcut("1")
+ Button("Two") {
+ currentNumber = "2"
+ }
+ .keyboardShortcut("2")
+ Button("Three") {
+ currentNumber = "3"
+ }
+ .keyboardShortcut("3")
+ Divider()
+
+ Button("Quit") {
+
+ NSApplication.shared.terminate(nil)
+
+ }.keyboardShortcut("q")
}
}
}