TechnologiesCommerce, Payments & Ads

_StoreKit_SwiftUI cross-import overlay

iOSmacOStvOSwatchOSvisionOS

_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.

  • Pr
    SubscriptionOptionGroupStyleiOS 18.0+
    A type that specifies the appearance and interaction of a nested groups of subscription options.
  • St
    AutomaticSubscriptionOptionGroupStyleiOS 18.0+
    The automatic subscrption option group style, based on the group's context.
  • St
    LinksSubscriptionOptionGroupStyleiOS 18.0+
    A subscription option group style which displays the first subgroup's content along with links to navigate to
  • St
    TabsSubscriptionOptionGroupStyle
    A subscription option group style which displays a tab view containing tabs for each subgroup.
  • St
    SubscriptionOptionGroupStyleOutputiOS 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.

  • Pr
    SubscriptionStoreControlPlacementiOS 18.0+
    A type that describes the placement of subscription controls in a subscription store view.
  • St
    AutomaticSubscriptionStoreControlPlacementiOS 18.0+
    The system-defined placements of a subscription store view.
  • St
    SubscriptionStoreControlPlacementKeyiOS 18.0+
    The system-defined placements of subscription controls in a subscription store view.
  • St
    SubscriptionStoreControlBackground
    The 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.

  • St
    ProductViewStyleConfigurationiOS 17.0+
    The properties of a product view.
  • St
    SubscriptionOfferViewStyleConfiguration
    The properties of a subscription offer view that a custom offer view style uses to build its appearance.
  • St
    SubscriptionStoreControlStyleConfigurationiOS 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.

  • St
    StoreButtonKindiOS 17.0+
    A kind of button managed by a store view or subscription store view.
  • St
    SubscriptionStoreButtonLabel
    The label of a subscribe button used by a subscription store view.
  • St
    SubscriptionOfferViewButtonKind
    A type that identifies the kinds of buttons shown in a subscription offer view.
  • St
    SubscriptionStorePolicyKindiOS 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.

  • St
    IdentifiedStoreContentiOS 18.0+
    You don't use this type directly. Instead, StoreKit uses this type to transform your store's content into a
  • En
    EntitlementTaskStateiOS 17.0+
    The state of an entitlement task.
  • En
    ProductIconPhaseiOS 17.0+
    The current phase of the asynchronous loading operation of the promotional image for

Structures 34

  • St
    AutomaticProductPlaceholderIconiOS 17.0+
    A view representing the automatic placeholder icon for a product view.
  • St
    AutomaticProductViewStyleiOS 17.0+
    The automatic product view style, based on the view's context.
  • St
    AutomaticSubscriptionOfferViewStyle
  • St
    AutomaticSubscriptionOptionGroupLabeliOS 18.0+
    A view representing the default label for a subscription option group.
  • St
    AutomaticSubscriptionStoreControlStyleiOS 17.0+
    The default subscription store control style, choosing a standard style automatically based on the view's
  • St
    AutomaticSubscriptionStoreMarketingContentiOS 17.0+
    A view representing the default marketing content for a subscription store view.
  • St
    AutomaticSubscriptionStorePickerOptionLabel
    The standard picker option label for a subscription store view.
  • St
    ButtonsSubscriptionStoreControlStyleiOS 17.0+
    A subscription store control style that displays a subscribe button for each subscription plan.
  • St
    CompactPickerSubscriptionStoreControlStyle
    A subscription store control style that displays subscription plans as a compact picker control, with a single
  • St
    CompactProductViewStyle
    A product view style suitable for layouts where less space is available, or for displaying more items in a
  • St
    CompactSubscriptionOfferViewStyle
  • St
    DisplayMessageAction
  • St
    LargeProductViewStyle
    A product view style suitable for layouts where in-app purchase content is prominent.
  • St
    PagedPickerSubscriptionStoreControlStyle
    A subscription store control style that displays subscription plans as a paged picker control, with a single
  • St
    PagedProminentPickerSubscriptionStoreControlStyle
    A subscription store control style that displays subscription plans as a paged prominent picker control, with
  • St
    PickerSubscriptionStoreControlStyle
    A subscription store control style that displays subscription plans as a picker control, with a single
Show 18 more
  • St
    ProductViewiOS 17.0+
    A view that merchandises an invididual in-app purchase product.
  • St
    ProminentPickerSubscriptionStoreControlStyle
    A subscription store control style that displays subscription plans as a prominent picker control,
  • St
    PurchaseActioniOS 17.0+
    An action that starts an in-app purchase.
  • St
    RegularProductViewStyleiOS 17.0+
    A product view style using a standard, platform appropriate layout.
  • St
    RequestReviewAction
  • St
    StoreContentBuilderiOS 18.0+
    A result builder that creates store content from closures you provide.
  • St
    StoreViewiOS 17.0+
    A view that merchandises a collection of in-app purchase products.
  • St
    SubscriptionOfferView
  • St
    SubscriptionOptionGroupiOS 18.0+
    A group of subscription options within a store.
  • St
    SubscriptionOptionGroupSetiOS 18.0+
    A set of subscription option groups.
  • St
    SubscriptionOptionSectioniOS 18.0+
    Contains subscription options to add visual hierarchy within a subscription store view's controls.
  • St
    SubscriptionPeriodGroupSetiOS 18.0+
    A set of subscription option groups, where each group represents subscription options with a common
  • St
    SubscriptionStoreButtoniOS 18.0+
    A button for subscribing to an in-app subscription.
  • St
    SubscriptionStoreContentViewiOS 18.0+
    A view representation of a subscription store view's content.
  • St
    SubscriptionStorePicker
  • St
    SubscriptionStorePickerOption
  • St
    SubscriptionStoreViewiOS 17.0+
    A view that merchandises a collection of subscription options in a subscription group.
  • St
    TupleStoreContentiOS 18.0+

Protocols 4

  • Pr
    ProductViewStyleiOS 17.0+
    A type that specifies the appearance and interaction of product views within the view hierarchy.
  • Pr
    StoreContentiOS 18.0+
    A type that represents the content of a store.
  • Pr
    SubscriptionOfferViewStyle
  • Pr
    SubscriptionStoreControlStyleiOS 17.0+
    A type that specifies the appearance and interaction of subscribe controls for subscription store views

Extends 6

ViewProductEnvironmentValuesContainerBackgroundPlacementNeverOptional
← Commerce, Payments & Ads