Mercurial > public > simoleon
comparison Simoleon/ContentView.swift @ 177:a1443bd115d9
add icloud capability
author | Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com> |
---|---|
date | Tue, 26 Oct 2021 13:18:51 +0200 |
parents | ad8c6567539d |
children | 7c4a789e51ba |
comparison
equal
deleted
inserted
replaced
176:736c560d99c1 | 177:a1443bd115d9 |
---|---|
4 // | 4 // |
5 // Created by Dennis Concepción Martín on 26/10/21. | 5 // Created by Dennis Concepción Martín on 26/10/21. |
6 // | 6 // |
7 | 7 |
8 import SwiftUI | 8 import SwiftUI |
9 import CoreData | |
10 | 9 |
11 struct ContentView: View { | 10 struct ContentView: View { |
12 var body: some View { | 11 var body: some View { |
13 Text("Hello world") | 12 Text("Hello world") |
14 } | 13 } |
15 } | 14 } |
16 | 15 |
17 struct ContentView_Previews: PreviewProvider { | 16 struct ContentView_Previews: PreviewProvider { |
18 static var previews: some View { | 17 static var previews: some View { |
19 ContentView().environment(\.managedObjectContext, PersistenceController.preview.container.viewContext) | 18 ContentView() |
19 .environment(\.managedObjectContext, PersistenceController.preview.container.viewContext) | |
20 } | 20 } |
21 } | 21 } |