DHBW-Service-App/DHBW-Service/App/DHBW_ServiceApp.swift

23 lines
468 B
Swift
Raw Permalink Normal View History

2020-12-19 23:36:41 +00:00
//
// DHBW_ServiceApp.swift
// DHBW-Service
//
// Created by Patrick Müller on 20.12.20.
//
import SwiftUI
@main
struct DHBW_ServiceApp: App {
let persistenceController = PersistenceController.shared
2020-12-21 19:54:59 +00:00
let settings = LocalSettings()
2020-12-19 23:36:41 +00:00
var body: some Scene {
WindowGroup {
ContentView()
2020-12-21 19:28:01 +00:00
.environment(\.managedObjectContext, persistenceController.context)
2020-12-21 19:54:59 +00:00
.environmentObject(settings)
2020-12-19 23:36:41 +00:00
}
}
}