---
title: hasCurrentEntitlement
framework: storekit
role: symbol
role_heading: Instance Property
path: storekit/productviewstyleconfiguration/hascurrententitlement
---

# hasCurrentEntitlement

A Boolean value that indicates whether an in-app purchase transaction exists for the product.

## Declaration

```swift
let hasCurrentEntitlement: Bool
```

## Discussion

Discussion Use the hasCurrentEntitlement property to determine whether a purchase may succeed, for a porduct that people can purchase only once. For example, if hasCurrentEntitlement is false, you may choose not to display a purchase button for the product, because the person has already purchased it. important: Don’t use this value to determine whether to enable access to the product; check the in-app purchase transaction information instead (Transaction).

## See Also

### Getting a product’s information

- [product](storekit/productviewstyleconfiguration/product.md)
- [state](storekit/productviewstyleconfiguration/state.md)
