Mercurial > public > simoleon
view Simoleon/SimoleonApp.swift @ 28:4f862c618b44
Implemented RevenueCat
author | Dennis Concepción Martín <dennisconcepcionmartin@gmail.com> |
---|---|
date | Thu, 22 Jul 2021 19:06:01 +0100 |
parents | 94fd7ac93060 |
children | 75c1a05176f6 |
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 { let persistenceController = PersistenceController.shared init() { Purchases.configure(withAPIKey: "\(readConfig("PURCHASES_KEY")!)") } var body: some Scene { WindowGroup { if UIDevice.current.userInterfaceIdiom == .pad { ContentViewPad() .environment(\.managedObjectContext, persistenceController.container.viewContext) } else { ContentView() .environment(\.managedObjectContext, persistenceController.container.viewContext) } } } }