
Storekit
This walks you through Apple's modern StoreKit 2 APIs for in-app purchases and subscriptions on iOS 16+. It covers the full lifecycle: loading products with Product.products, handling the purchase flow with proper verification, setting up the Transaction.updates listener (which too many people skip), and checking entitlements correctly. The built-in SubscriptionStoreView and StoreView components on iOS 17+ handle most of the UI work for you, which is great if you don't need custom paywall designs. It also shows how to implement offer codes, manage subscription status, and handle edge cases like Family Sharing and Ask to Buy. Use this when you need to actually ship IAP correctly instead of cobbling together examples from outdated tutorials still using SKPaymentQueue.
- skills.sh installs
- 4.2K
- GitHub stars
- 1.3K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add dpearson2699/swift-ios-skills --skill storekit --agent claude-codeInstalls into .claude/skills of the current project.
Files
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
Sponsors
Details
- Repository
- github.com/dpearson2699/swift-ios-skills
- Categories
- Testing & QA, Git & Pull Requests, Code Review & Quality, Mobile Development
- First seen
- Apr 16, 2026
More from dpearson2699/swift-ios-skills
All 98- Widgetkit4.2K
- Swiftui Gestures4.2K
- Apple On Device Ai4.2K
- Swift Charts4.2K
- Swift Language4.1K
- App Intents4.1K
- Authentication4.1K
- Background Processing4.1K
- Healthkit4K
- Vision Framework4K
- Coreml3.9K
- Core Bluetooth3.9K
- Core Motion3.8K
- Natural Language3.8K
- Speech Recognition3.8K
- Device Integrity3.8K
- Contacts Framework3.8K
- Alarmkit3.8K
- Core Nfc3.8K
- Swift Codable3.8K
- Tipkit3.8K
- App Clips3.8K
- Permissionkit3.7K
- Energykit3.7K