The state of a store products task.
Use `storeProductTask(for:priority:action:)` on a `View` to get a
`CollectionTaskState`.
Members (1)
get · iOS 17.0+
products
TypeScript
get products(): (Array<_StoreKit_Product>) | null
Swift declaration
var products: [Product]? { get }
An array of available products if the task was successful.
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.