<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "StoreKit",
  "identifier" : "/documentation/StoreKit/ProductViewStyleConfiguration/hasCurrentEntitlement",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "StoreKit",
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:17_StoreKit_SwiftUI29ProductViewStyleConfigurationV21hasCurrentEntitlementSbvp"
  },
  "title" : "hasCurrentEntitlement"
}
-->

# hasCurrentEntitlement

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

```
let hasCurrentEntitlement: Bool
```

## Discussion

Use the [`hasCurrentEntitlement`](/documentation/StoreKit/ProductViewStyleConfiguration/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 (``doc://com.apple.storekit/documentation/StoreKit/Transaction``).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)