<!--
{
  "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/Product/CollectionTaskState/products",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "StoreKit",
      "SwiftUI",
      "_StoreKit_SwiftUI"
    ],
    "preciseIdentifier" : "s:8StoreKit7ProductV01_aB8_SwiftUIE19CollectionTaskStateO8productsSayACGSgvp"
  },
  "title" : "products"
}
-->

# products

An array of available products if the task was successful.

```
var products: [Product]? { get }
```

## Discussion

Use this as a convenience to access the products in code that doesn’t depend on the reason the
reason a product can’t be accessed. The value is `nil` while the task is loading, or if the task fails.

---

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)