iOS15-SwiftUI-InAppPurchaseDemo
In-App Purchase Demo app written with SwiftUI
If you want to try it for yourself, follow these steps.
-
Open StoreViewModel file
-
Change com.premium.world1 to a uniqueString
let products = try await Product.products(for: [“com.premium.world1”]) -
Open Configuration file
-
Change productID to the uniqueString in step 2
-
Deploy and try.
-
You have to change uniqueString every time because it’s a non-consumable In-App Purchase
Gif