diff options
-rw-r--r-- | iTexSnip/iTexSnip.entitlements | 2 | ||||
-rw-r--r-- | iTexSnip/iTexSnipApp.swift | 18 |
2 files changed, 18 insertions, 2 deletions
diff --git a/iTexSnip/iTexSnip.entitlements b/iTexSnip/iTexSnip.entitlements index 18aff0c..625af03 100644 --- a/iTexSnip/iTexSnip.entitlements +++ b/iTexSnip/iTexSnip.entitlements @@ -6,5 +6,7 @@ <true/> <key>com.apple.security.files.user-selected.read-only</key> <true/> + <key>com.apple.security.network.client</key> + <true/> </dict> </plist> diff --git a/iTexSnip/iTexSnipApp.swift b/iTexSnip/iTexSnipApp.swift index d69546b..c4d686a 100644 --- a/iTexSnip/iTexSnipApp.swift +++ b/iTexSnip/iTexSnipApp.swift @@ -6,12 +6,26 @@ // import SwiftUI +import SwiftData + @main struct iTexSnipApp: App { var body: some Scene { - WindowGroup { - ContentView() +// WindowGroup { +// MenuBarView() +// .modelContainer(for: ImageSnippet.self) +// } + MenuBarExtra("iTexSnip", systemImage: "function") { + MenuBarView() + .frame(width: 500, height: 600) + .modelContainer(for: ImageSnippet.self) + }.menuBarExtraStyle(.window) + Settings { + PreferencesView() } } } + + + |