---
title: "quantity(_:)"
framework: storekit
role: symbol
role_heading: Type Method
path: "storekit/product/purchaseoption/quantity(_:)"
---

# quantity(_:)

Indicates the quantity of items the customer is purchasing.

## Declaration

```swift
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

Return Value An instance of Product.PurchaseOption to use in purchase(options:).

## Discussion

Discussion The quantity applies to consumable in-app purchases and non-renewing subscriptions.

## See Also

### Setting the purchase options

- [appAccountToken(_:)](storekit/product/purchaseoption/appaccounttoken(_:).md)
- [winBackOffer(_:)](storekit/product/purchaseoption/winbackoffer(_:).md)
- [promotionalOffer(offerID:keyID:nonce:signature:timestamp:)](storekit/product/purchaseoption/promotionaloffer(offerid:keyid:nonce:signature:timestamp:).md)
- [promotionalOffer(offerID:signature:)](storekit/product/purchaseoption/promotionaloffer(offerid:signature:).md)
