Adding Observables class

This commit is contained in:
2020-12-21 20:54:59 +01:00
committed by Patrick Müller
parent bdc3560668
commit f47674cdbb
5 changed files with 72 additions and 9 deletions
+2
View File
@@ -10,11 +10,13 @@ import SwiftUI
@main
struct DHBW_ServiceApp: App {
let persistenceController = PersistenceController.shared
let settings = LocalSettings()
var body: some Scene {
WindowGroup {
ContentView()
.environment(\.managedObjectContext, persistenceController.context)
.environmentObject(settings)
}
}
}