storekit
Implement, review, or improve in-app purchases and subscriptions using StoreKit 2. Use when building paywalls with SubscriptionStoreView or ProductView, processing transactions with Product and Transaction APIs, verifying entitlements, handling purchase flows (consumable, non-consumable, auto-renewable), implementing offer codes or promotional/win-back/introductory offers, managing subscription status and renewal state, setting up StoreKit testing with configuration files, or integrating Family Sharing, Ask to Buy, refund handling, and billing retry logic.
npx skills add dpearson2699/swift-ios-skills --skill storekit --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# StoreKit 2 In-App Purchases and Subscriptions Implement in-app purchases, subscriptions, paywalls, and StoreKit testing using StoreKit 2. Use the modern Swift-based `Product`, `Transaction`, `PurchaseAction`, `StoreView`, and `SubscriptionStoreView` APIs. Avoid original In-App Purchase APIs (`SKProduct`, `SKPaymentQueue`) unless legacy OS support requires them. StoreKit views initiate purchases automatically. For custom controls, use `PurchaseAction` in SwiftUI, `purchase(confirmIn:options:)` in UIKit/AppKit, and `product.purchase(options:)` on watchOS. ## Contents - [Product Types](#product-types) - [Loading Products](#loading-products) - [Purchase Flow](#purchase-flow) - [Transaction.updates Listener](#transactionupdates-listener) - [Entitlement Checking](#entitlement-checking) - [SubscriptionStoreView (iOS 17+)](#subscriptionstoreview-ios-17) - [StoreView (iOS 17+)](#storeview-ios-17) - [Subscription Status Checking](#subscription-status-checking) - [Restore Purchases](#restore-purchases) - [App Transaction (App Purchase Verification)](#app-transaction-app-purchase-verification) - [Purchase Options](#purchase-options) - [SwiftUI Purchase Callbacks](#swiftui-purchase-callbacks)
- Contents
- Product Types
- Loading Products
- Purchase Flow
- Transaction.updates Listener
- Entitlement Checking
- SwiftUI .currentEntitlementTask Modifier
- SubscriptionStoreView (iOS 17+)
- Custom Marketing Content
- Hierarchical Layout
- StoreView (iOS 17+)
- ProductView for Individual Products
- Subscription Status Checking
- Renewal States
What does the storekit skill do?
Implement, review, or improve in-app purchases and subscriptions using StoreKit 2. Use when building paywalls with SubscriptionStoreView or ProductView, processing transactions with Product and Transaction APIs, verifying entitlements, handling purchase flows (consumable, non-consumable, auto-renewable), implementing offer codes or promotional/win-back/introductory offers, managing subscription status and renewal state, setting up StoreKit testing with configuration files, or integrating Family Sharing, Ask to Buy, refund handling, and billing retry logic.
How do I install it?
Run `npx skills add dpearson2699/swift-ios-skills --skill storekit --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From dpearson2699/swift-ios-skills, a repository with 963 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.