Mercurial > public > simoleon
diff Simoleon/SimoleonApp.swift @ 0:e0c2bda6c51f
first commit
author | Dennis Concepción Martín <dennisconcepcionmartin@gmail.com> |
---|---|
date | Sun, 11 Jul 2021 15:13:29 +0100 |
parents | |
children | a02f463aa906 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Simoleon/SimoleonApp.swift Sun Jul 11 15:13:29 2021 +0100 @@ -0,0 +1,20 @@ +// +// SimoleonApp.swift +// Simoleon +// +// Created by Dennis Concepción Martín on 08/07/2021. +// + +import SwiftUI + +@main +struct SimoleonApp: App { + let persistenceController = PersistenceController.shared + + var body: some Scene { + WindowGroup { + ContentView() + .environment(\.managedObjectContext, persistenceController.container.viewContext) + } + } +}