_StoreKit_SwiftUI is the cross-import overlay that brings StoreKit's commerce surfaces into SwiftUI, providing views such as ProductView and StoreView to merchandise in-app purchases and subscriptions natively. You use it to present and style products and subscription offers across iOS, macOS, tvOS, watchOS, and visionOS, configuring their appearance through types like ProductViewStyleConfiguration, SubscriptionStoreControlStyleConfiguration, and SubscriptionOfferViewStyleConfiguration. Subscription group presentation is customizable with the SubscriptionOptionGroupStyle protocol and its styles, including AutomaticSubscriptionOptionGroupStyle, LinksSubscriptionOptionGroupStyle, and TabsSubscriptionOptionGroupStyle, while control placement, store buttons, and policy labels are controlled by types such as SubscriptionStoreControlPlacement, StoreButtonKind, SubscriptionStoreButtonLabel, and SubscriptionStorePolicyKind. Entitlement-driven content can be tracked through EntitlementTaskState as products load.
Subscription Group Styles 5
Protocols and styles that control how a subscription store presents its option groups.
- PrSubscriptionOptionGroupStyleiOS 18.0+A type that specifies the appearance and interaction of a nested groups of subscription options.
- StAutomaticSubscriptionOptionGroupStyleiOS 18.0+The automatic subscrption option group style, based on the group's context.
- StLinksSubscriptionOptionGroupStyleiOS 18.0+A subscription option group style which displays the first subgroup's content along with links to navigate to
- StTabsSubscriptionOptionGroupStyleA subscription option group style which displays a tab view containing tabs for each subgroup.
- StSubscriptionOptionGroupStyleOutputiOS 18.0+You don't use this type directly. Instead, StoreKit uses this type internally to understand what appearance
Subscription Control Placement 4
Types that position the purchase controls within a subscription store view.
- PrSubscriptionStoreControlPlacementiOS 18.0+A type that describes the placement of subscription controls in a subscription store view.
- StAutomaticSubscriptionStoreControlPlacementiOS 18.0+The system-defined placements of a subscription store view.
- StSubscriptionStoreControlPlacementKeyiOS 18.0+The system-defined placements of subscription controls in a subscription store view.
- StSubscriptionStoreControlBackgroundThe background layer below the subscribe controls, and above any background in an in-app subscription
Style Configurations 3
Configuration values that describe the current state of a product or subscription view for custom styles.
- StProductViewStyleConfigurationiOS 17.0+The properties of a product view.
- StSubscriptionOfferViewStyleConfigurationThe properties of a subscription offer view that a custom offer view style uses to build its appearance.
- StSubscriptionStoreControlStyleConfigurationiOS 17.0+The properties of a subscription store control.
Buttons and Labels 4
Types that customize the store buttons, labels, and policy links shown in commerce views.
- StStoreButtonKindiOS 17.0+A kind of button managed by a store view or subscription store view.
- StSubscriptionStoreButtonLabelThe label of a subscribe button used by a subscription store view.
- StSubscriptionOfferViewButtonKindA type that identifies the kinds of buttons shown in a subscription offer view.
- StSubscriptionStorePolicyKindiOS 17.0+A value that describes a link style button to a subscription policy.
Content and Loading State 3
Types that represent store content and track its loading and entitlement progress.
- StIdentifiedStoreContentiOS 18.0+You don't use this type directly. Instead, StoreKit uses this type to transform your store's content into a
- EnEntitlementTaskStateiOS 17.0+The state of an entitlement task.
- EnProductIconPhaseiOS 17.0+The current phase of the asynchronous loading operation of the promotional image for
Structures 34
- StAutomaticProductPlaceholderIconiOS 17.0+A view representing the automatic placeholder icon for a product view.
- StAutomaticProductViewStyleiOS 17.0+The automatic product view style, based on the view's context.
- StAutomaticSubscriptionOfferViewStyle
- StAutomaticSubscriptionOptionGroupLabeliOS 18.0+A view representing the default label for a subscription option group.
- StAutomaticSubscriptionStoreControlStyleiOS 17.0+The default subscription store control style, choosing a standard style automatically based on the view's
- StAutomaticSubscriptionStoreMarketingContentiOS 17.0+A view representing the default marketing content for a subscription store view.
- StAutomaticSubscriptionStorePickerOptionLabelThe standard picker option label for a subscription store view.
- StButtonsSubscriptionStoreControlStyleiOS 17.0+A subscription store control style that displays a subscribe button for each subscription plan.
- StCompactPickerSubscriptionStoreControlStyleA subscription store control style that displays subscription plans as a compact picker control, with a single
- StCompactProductViewStyleA product view style suitable for layouts where less space is available, or for displaying more items in a
- StCompactSubscriptionOfferViewStyle
- StDisplayMessageAction
- StLargeProductViewStyleA product view style suitable for layouts where in-app purchase content is prominent.
- StPagedPickerSubscriptionStoreControlStyleA subscription store control style that displays subscription plans as a paged picker control, with a single
- StPagedProminentPickerSubscriptionStoreControlStyleA subscription store control style that displays subscription plans as a paged prominent picker control, with
- StPickerSubscriptionStoreControlStyleA subscription store control style that displays subscription plans as a picker control, with a single
Show 18 more
- StProductViewiOS 17.0+A view that merchandises an invididual in-app purchase product.
- StProminentPickerSubscriptionStoreControlStyleA subscription store control style that displays subscription plans as a prominent picker control,
- StPurchaseActioniOS 17.0+An action that starts an in-app purchase.
- StRegularProductViewStyleiOS 17.0+A product view style using a standard, platform appropriate layout.
- StRequestReviewAction
- StStoreContentBuilderiOS 18.0+A result builder that creates store content from closures you provide.
- StStoreViewiOS 17.0+A view that merchandises a collection of in-app purchase products.
- StSubscriptionOfferView
- StSubscriptionOptionGroupiOS 18.0+A group of subscription options within a store.
- StSubscriptionOptionGroupSetiOS 18.0+A set of subscription option groups.
- StSubscriptionOptionSectioniOS 18.0+Contains subscription options to add visual hierarchy within a subscription store view's controls.
- StSubscriptionPeriodGroupSetiOS 18.0+A set of subscription option groups, where each group represents subscription options with a common
- StSubscriptionStoreButtoniOS 18.0+A button for subscribing to an in-app subscription.
- StSubscriptionStoreContentViewiOS 18.0+A view representation of a subscription store view's content.
- StSubscriptionStorePicker
- StSubscriptionStorePickerOption
- StSubscriptionStoreViewiOS 17.0+A view that merchandises a collection of subscription options in a subscription group.
- StTupleStoreContentiOS 18.0+
Protocols 4
- PrProductViewStyleiOS 17.0+A type that specifies the appearance and interaction of product views within the view hierarchy.
- PrStoreContentiOS 18.0+A type that represents the content of a store.
- PrSubscriptionOfferViewStyle
- PrSubscriptionStoreControlStyleiOS 17.0+A type that specifies the appearance and interaction of subscribe controls for subscription store views