diff GeoQuiz/GeoQuizApp.swift @ 20:e281791e0494

finish implementation
author Dennis C. M. <dennis@denniscm.com>
date Sun, 23 Oct 2022 11:48:39 +0100
parents 1011e56b7832
children
line wrap: on
line diff
--- a/GeoQuiz/GeoQuizApp.swift	Sun Oct 23 00:11:38 2022 +0100
+++ b/GeoQuiz/GeoQuizApp.swift	Sun Oct 23 11:48:39 2022 +0100
@@ -10,7 +10,7 @@
 
 @main
 struct GeoQuizApp: App {
-    @StateObject private var persistenceController = PersistenceController()
+    let persistenceController = PersistenceController.shared
     
     init() {
         Purchases.configure(withAPIKey: "appl_BymTxroeoaWiXAraaFjcPlHlqbf")