get descriptionVisibility(): _SwiftUICore_Visibility
Swift declaration
let descriptionVisibility: Visibility
The visibility of the product's description.
This property is available if you choose to support configuring the description visibility in your
custom control style. It reflects the value set with the ``SwiftUI/View/productDescription(_:)``
view modifier on an ancestor view.
For standard styles which typically display the `description` property of the `Product`, this
label is not displayed when the visibility is `hidden`.
get · iOS 17.0+
hasCurrentEntitlement
TypeScript
get hasCurrentEntitlement(): boolean
Swift declaration
let hasCurrentEntitlement: Bool
Whether an in-app purchase transaction exists for the product's current entitlement.
- Important: Don't use this property to determine whether to allow access to service for the
product. Always check the full in-app purchase transaction information. This
property is useful for quickly determining whether a purchase for a product that
cannot be purchased more than once will succeed.
get · iOS 17.0+
icon
TypeScript
get icon(): ProductViewStyleConfiguration_Icon
Swift declaration
let icon: ProductViewStyleConfiguration.Icon
A decorative view for merchandising the product.
get · iOS 17.0+
state
TypeScript
get state(): Product_TaskState
Swift declaration
let state: Product.TaskState
The state of loading the product from the App Store.
get · iOS 17.0+
product
TypeScript
get product(): (_StoreKit_Product) | null
Swift declaration
var product: Product? { get }
The product to merchandise.
The value is `nil` unless the value of the ``state`` property is ``StoreKit/Product/TaskState/success(_:)``.
method · iOS 17.0+
purchase
TypeScript
purchase(): void
Swift declaration
func purchase()
Initiates a purchase action for the product.
Use this method instead of calling `purchase(options:)` directly on the product.