Mercurial > public > simoleon
view Simoleon/SimoleonApp.swift @ 154:8afba86ab8dd
Refactor code
author | Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com> |
---|---|
date | Wed, 25 Aug 2021 10:43:12 +0100 |
parents | 1f657241c28f |
children | 84137052813d |
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 let fileController = FileController() init() { let apiKey = fileController.readConfigVariable(withKey: "PURCHASES_KEY")! Purchases.configure(withAPIKey: apiKey) } var body: some Scene { WindowGroup { ContentView() .environment(\.managedObjectContext, persistenceController.container.viewContext) } } }