Mercurial > public > geoquiz
diff GeoQuiz/GeoQuizApp.swift @ 16:1011e56b7832
implement user profile
author | Dennis C. M. <dennis@denniscm.com> |
---|---|
date | Thu, 20 Oct 2022 13:49:42 +0200 |
parents | f1967f8cc67b |
children | e281791e0494 |
line wrap: on
line diff
--- a/GeoQuiz/GeoQuizApp.swift Wed Oct 19 10:04:17 2022 +0200 +++ b/GeoQuiz/GeoQuizApp.swift Thu Oct 20 13:49:42 2022 +0200 @@ -10,7 +10,7 @@ @main struct GeoQuizApp: App { - @StateObject private var dataController = DataController() + @StateObject private var persistenceController = PersistenceController() init() { Purchases.configure(withAPIKey: "appl_BymTxroeoaWiXAraaFjcPlHlqbf") @@ -19,7 +19,7 @@ var body: some Scene { WindowGroup { ContentView() - .environment(\.managedObjectContext, dataController.container.viewContext) + .environment(\.managedObjectContext, persistenceController.container.viewContext) } } }