Mercurial > public > simoleon
comparison Simoleon/SimoleonApp.swift @ 173:ad8c6567539d
restart project
author | Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com> |
---|---|
date | Tue, 26 Oct 2021 13:09:17 +0200 |
parents | 35573bdd7d9b |
children | 5a9430fd6b4d |
comparison
equal
deleted
inserted
replaced
172:9b0486301fbf | 173:ad8c6567539d |
---|---|
1 // | 1 // |
2 // SimoleonApp.swift | 2 // SimoleonApp.swift |
3 // Simoleon | 3 // Simoleon |
4 // | 4 // |
5 // Created by Dennis Concepción Martín on 08/07/2021. | 5 // Created by Dennis Concepción Martín on 26/10/21. |
6 // | 6 // |
7 | 7 |
8 import SwiftUI | 8 import SwiftUI |
9 | 9 |
10 @main | 10 @main |
11 struct SimoleonApp: App { | 11 struct SimoleonApp: App { |
12 let persistenceController = PersistenceController.shared | 12 let persistenceController = PersistenceController.shared |
13 | 13 |
14 var body: some Scene { | 14 var body: some Scene { |
15 WindowGroup { | 15 WindowGroup { |
16 ContentView() | 16 ContentView() |
17 .environment(\.managedObjectContext, persistenceController.container.viewContext) | 17 .environment(\.managedObjectContext, persistenceController.container.viewContext) |
18 } | 18 } |