<!--
{
  "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/EntitlementTaskState/value",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "StoreKit",
      "SwiftUI",
      "_StoreKit_SwiftUI"
    ],
    "preciseIdentifier" : "s:17_StoreKit_SwiftUI20EntitlementTaskStateO5valuexSgvp"
  },
  "title" : "value"
}
-->

# value

The entitlement value if the task is successful.

```
var value: Value? { get }
```

## Discussion

This value is `nil` while the value is loading, or if it fails to load for any reason.

Use [`value`](/documentation/StoreKit/EntitlementTaskState/value) as a convenience to access the entitlement value in code that doesn’t depend on the reason the value can’t be accessed if it fails to load.

---

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)