One Logo Pool Ball
_StoreKit_SwiftUI · IOS API REFERENCE

Product.TaskState

enum · iOS 17.0+ · SDK 27.1

enum TaskState

The state of a store product task. Use `storeProductTask(for:priority:action:)` on a `View` to get a `TaskState`.

Members (1)

get · iOS 17.0+

product

TypeScript
get product(): (_StoreKit_Product) | null
Swift declaration
var product: Product? { get }

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

Skipped declarations

No declarations were skipped in this snapshot.

All _StoreKit_SwiftUI types →