Mercurial > public > geoquiz
annotate GeoQuiz/GeoQuizApp.swift @ 15:f1967f8cc67b
first iteration of core data
author | Dennis C. M. <dennis@denniscm.com> |
---|---|
date | Wed, 19 Oct 2022 10:04:17 +0200 |
parents | ce7ea84f67f5 |
children | 1011e56b7832 |
rev | line source |
---|---|
0 | 1 // |
2 // GeoQuizApp.swift | |
3 // GeoQuiz | |
4 // | |
5 // Created by Dennis Concepción Martín on 4/9/22. | |
6 // | |
7 | |
8 import SwiftUI | |
11 | 9 import RevenueCat |
0 | 10 |
11 @main | |
12 struct GeoQuizApp: App { | |
15
f1967f8cc67b
first iteration of core data
Dennis C. M. <dennis@denniscm.com>
parents:
12
diff
changeset
|
13 @StateObject private var dataController = DataController() |
11 | 14 |
15 init() { | |
16 Purchases.configure(withAPIKey: "appl_BymTxroeoaWiXAraaFjcPlHlqbf") | |
17 } | |
18 | |
0 | 19 var body: some Scene { |
20 WindowGroup { | |
21 ContentView() | |
15
f1967f8cc67b
first iteration of core data
Dennis C. M. <dennis@denniscm.com>
parents:
12
diff
changeset
|
22 .environment(\.managedObjectContext, dataController.container.viewContext) |
0 | 23 } |
24 } | |
25 } |