One Logo Pool Ball
_StoreKit_SwiftUI · IOS API REFERENCE

Product.CollectionTaskState

enum · iOS 17.0+ · SDK 27.1

enum CollectionTaskState

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.

Skipped declarations

No declarations were skipped in this snapshot.

All _StoreKit_SwiftUI types →