aboutsummaryrefslogtreecommitdiff
path: root/Map/Views/MapApp.swift
blob: 0f8ae64f553e9a1d43ffdbe683c2554defc13849 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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())
  }
}