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-code

Installs 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
1hashicorp avatarprovider-resourceshashicorp/agent-skillsImplement Terraform Provider resources and data sources using the Plugin Framework. Use when developing CRUD operations, schema design, state management, and ac4.2Kskills.sh installs
2dotnet avatarcreate-skilldotnet/skillsScaffolds new agent skills for the dotnet/skills repository. Use when creating a new skill, generating SKILL.md files, writing a skill description that the runt4.2Kskills.sh installs
3jeremylongshore avatarbacktesting-trading-strategiesjeremylongshore/claude-code-plugins-plus-skillsBacktest crypto and traditional trading strategies against historical data. Calculates performance metrics (Sharpe, Sortino, max drawdown), generates equity cur4.2Kskills.sh installs
4dotnet avatarmicrobenchmarkingdotnet/skillsActivate this skill when BenchmarkDotNet (BDN) is involved in the task — creating, running, configuring, or reviewing BDN benchmarks. Also activate when microbe4.2Kskills.sh installs
5elastic avatarsecurity-detection-rule-managementelastic/agent-skillsCreate, tune, and manage Elastic Security detection rules (SIEM and Endpoint). Use for false positives, exceptions, new coverage, noisy rules, or rule managemen4.1Kskills.sh installs
6openai avataraspnet-coreopenai/skillsBuild, review, refactor, or architect ASP.NET Core web applications using current official guidance for .NET web development. Use when working on Blazor Web App4.1Kskills.sh installs