From 5e8ff4850c4827125fe12788dd5b153c4f636f48 Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Wed, 3 Feb 2021 23:53:12 +0100 Subject: Add code for first release --- Map/Views/MapApp.swift | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Map/Views/MapApp.swift (limited to 'Map/Views/MapApp.swift') 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()) + } +} -- cgit