activeOffer
TypeScriptget activeOffer(): (_StoreKit_Product_SubscriptionOffer) | nullSwift declarationvar activeOffer: Product.SubscriptionOffer? { get }The selected subscription offer to apply to the purchase of this subscription option.
struct · iOS 18.0+ · SDK 27.1
@dynamicMemberLookup struct OptionThe properties of a control for subscribing to a subscription product.
get activeOffer(): (_StoreKit_Product_SubscriptionOffer) | nullSwift declarationvar activeOffer: Product.SubscriptionOffer? { get }The selected subscription offer to apply to the purchase of this subscription option.
get subscription(): _StoreKit_ProductSwift declarationvar subscription: Product { get }Properties of the subscription. You don't need to access this property directly in order to access properties of the subscription. Any of ``StoreKit/Product``'s members can be accessed directly on an ``SubscriptionStoreControlStyleConfiguration/Option`` value. - Important: Don't use ``StoreKit/Product/purchase(confirmIn:options:)`` on the product value in your control style. Instead, call ``subscribe()`` on the ``SubscriptionStoreControlStyleConfiguration/Option`` in response to an subscribe interaction.
subscriptDynamicMember(keyPath: SDKHandle): (unknown) | nullSwift declarationsubscript<T>(dynamicMember keyPath: KeyPath<Product.SubscriptionInfo, T?>) -> T? { get }subscriptDynamicMember5817(keyPath: SDKHandle): (unknown) | nullSwift declarationsubscript<T>(dynamicMember keyPath: KeyPath<Product.SubscriptionInfo, T>) -> T? { get }subscriptDynamicMember67124(keyPath: SDKHandle): unknownSwift declarationsubscript<T>(dynamicMember keyPath: KeyPath<Product, T>) -> T { get }get id(): stringSwift declarationvar id: Product.ID { get }The product ID of the subscription option.
get icon(): (SubscriptionStoreControlStyleConfiguration_Icon) | nullSwift declarationvar icon: SubscriptionStoreControlStyleConfiguration.Icon? { get }The subscription option's icon. You declare the control icon for subscription store views within a view hierarchy with ``SwiftUI/View/subscriptionStoreControlIcon(icon:)``.
subscribe(): voidSwift declarationfunc subscribe()The action to perform in response to a subscribe interaction. - Important: Don't use ``StoreKit/Product/purchase(confirmIn:options:)`` on ``subscription`` in your control style. Call this method instead.
No declarations were skipped in this snapshot.