From 126c5a27ee98146c349303ecc7c77f6413cfe5fe Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Mon, 21 Oct 2024 23:52:51 -0600 Subject: fix git sync --- iTexSnip/iTexSnip.entitlements | 2 ++ 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 @@ com.apple.security.files.user-selected.read-only + com.apple.security.network.client + 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() } } } + + + -- cgit v1.2.3