quantity(_:)
Indicates the quantity of items the customer is purchasing.
Declaration
static func quantity(_ quantity: Int) -> Product.PurchaseOptionParameters
- quantity:
The number of items the customer is purchasing.
The default value is 1. The maximum value is 10.
Return Value
An instance of Product.PurchaseOption to use in purchase(options:).
Discussion
The quantity applies to consumable in-app purchases and non-renewing subscriptions.