Mercurial > public > simoleon
view Simoleon/SimoleonApp.swift @ 156:84137052813d
Refactor code
author | Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com> |
---|---|
date | Sat, 28 Aug 2021 11:15:25 +0100 |
parents | 8afba86ab8dd |
children | 0c589138a6f3 |
line wrap: on
line source
// // SimoleonApp.swift // Simoleon // // Created by Dennis Concepción Martín on 08/07/2021. // import SwiftUI import Purchases @main struct SimoleonApp: App { @UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate let persistenceController = PersistenceController.shared init() { let apiKey = readConfigVariable(withKey: "PURCHASES_KEY")! Purchases.configure(withAPIKey: apiKey) } var body: some Scene { WindowGroup { ContentView() .environment(\.managedObjectContext, persistenceController.container.viewContext) } } }