Mercurial > public > geoquiz
comparison 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 |
comparison
equal
deleted
inserted
replaced
15:f1967f8cc67b | 16:1011e56b7832 |
---|---|
8 import SwiftUI | 8 import SwiftUI |
9 import RevenueCat | 9 import RevenueCat |
10 | 10 |
11 @main | 11 @main |
12 struct GeoQuizApp: App { | 12 struct GeoQuizApp: App { |
13 @StateObject private var dataController = DataController() | 13 @StateObject private var persistenceController = PersistenceController() |
14 | 14 |
15 init() { | 15 init() { |
16 Purchases.configure(withAPIKey: "appl_BymTxroeoaWiXAraaFjcPlHlqbf") | 16 Purchases.configure(withAPIKey: "appl_BymTxroeoaWiXAraaFjcPlHlqbf") |
17 } | 17 } |
18 | 18 |
19 var body: some Scene { | 19 var body: some Scene { |
20 WindowGroup { | 20 WindowGroup { |
21 ContentView() | 21 ContentView() |
22 .environment(\.managedObjectContext, dataController.container.viewContext) | 22 .environment(\.managedObjectContext, persistenceController.container.viewContext) |
23 } | 23 } |
24 } | 24 } |
25 } | 25 } |