<!--
{
  "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/map(_:)-8ly3v",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "StoreKit",
      "SwiftUI",
      "_StoreKit_SwiftUI"
    ],
    "preciseIdentifier" : "s:17_StoreKit_SwiftUI20EntitlementTaskStateO3mapyACyqd__Gqd__xKXEKlF"
  },
  "title" : "map(_:)"
}
-->

# map(_:)

Returns a new state, mapping the entitlement value if successful.

```
func map<NewValue>(_ transform: (Value) throws -> NewValue) rethrows -> EntitlementTaskState<NewValue>
```

---

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)