aboutsummaryrefslogtreecommitdiff
path: root/Map/Views/MapApp.swift
diff options
context:
space:
mode:
authorRuben Beltran del Rio <ruben@unlimited.pizza>2021-02-03 23:53:12 +0100
committerRuben Beltran del Rio <ruben@unlimited.pizza>2021-02-03 23:53:12 +0100
commit5e8ff4850c4827125fe12788dd5b153c4f636f48 (patch)
treef37c90338f33e7ddc84cc855a20dca1ca503476e /Map/Views/MapApp.swift
parent1b85f723b48d38cf345bb9a4f3fd01aa6039b50b (diff)
Add code for first release
Diffstat (limited to 'Map/Views/MapApp.swift')
-rw-r--r--Map/Views/MapApp.swift21
1 files changed, 21 insertions, 0 deletions
diff --git a/Map/Views/MapApp.swift b/Map/Views/MapApp.swift
new file mode 100644
index 0000000..0f8ae64
--- /dev/null
+++ b/Map/Views/MapApp.swift
@@ -0,0 +1,21 @@
+//
+// MapApp.swift
+// Map
+//
+// Created by Ruben Beltran del Rio on 2/1/21.
+//
+
+import SwiftUI
+
+@main
+struct MapApp: App {
+ let persistenceController = PersistenceController.shared
+
+ var body: some Scene {
+ WindowGroup {
+ ContentView()
+ .environment(\.managedObjectContext, persistenceController.container.viewContext)
+ .environmentObject(AppStore(initialState: AppState(), reducer: appStateReducer))
+ }.windowStyle(HiddenTitleBarWindowStyle())
+ }
+}