Mercurial > public > geoquiz
comparison GeoQuiz/GeoQuizApp.swift @ 12:ce7ea84f67f5
display product prices
author | Dennis C. M. <dennis@denniscm.com> |
---|---|
date | Sun, 09 Oct 2022 19:46:44 +0200 |
parents | 039b26a99a48 |
children | f1967f8cc67b |
comparison
equal
deleted
inserted
replaced
11:039b26a99a48 | 12:ce7ea84f67f5 |
---|---|
16 } | 16 } |
17 | 17 |
18 var body: some Scene { | 18 var body: some Scene { |
19 WindowGroup { | 19 WindowGroup { |
20 ContentView() | 20 ContentView() |
21 .onAppear(perform: testRevenueCat) | |
22 } | |
23 } | |
24 | |
25 private func testRevenueCat() { | |
26 Purchases.shared.getOfferings { (offerings, error) in | |
27 if let packages = offerings?.current?.availablePackages { | |
28 // Display packages for sale | |
29 print(packages) | |
30 } | |
31 } | 21 } |
32 } | 22 } |
33 } | 23 } |