Contents

quantity(_:)

Indicates the quantity of items the customer is purchasing.

Declaration

static func quantity(_ quantity: Int) -> Product.PurchaseOption

Parameters

  • 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.

See Also

Setting the purchase options