aboutsummaryrefslogtreecommitdiff
path: root/Map/MapApp.swift
diff options
context:
space:
mode:
Diffstat (limited to 'Map/MapApp.swift')
-rw-r--r--Map/MapApp.swift20
1 files changed, 20 insertions, 0 deletions
diff --git a/Map/MapApp.swift b/Map/MapApp.swift
new file mode 100644
index 0000000..10b6bcb
--- /dev/null
+++ b/Map/MapApp.swift
@@ -0,0 +1,20 @@
+//
+// 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)
+ }
+ }
+}