storekit

Implement StoreKit 2 IAP paywalls and entitlements for SwiftUI apps.

Updated Jun 5, 2026
One-click install
npx skills add https://github.com/harshav167/build-ios-apps --skill storekit-harshav167
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: storekit
Source: https://github.com/harshav167/build-ios-apps/tree/main/skills/storekit
Command: npx skills add https://github.com/harshav167/build-ios-apps --skill storekit-harshav167

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

StoreKit 2 IAP and subscription management for SwiftUI apps, simplifying the implementation of purchases, entitlements, refunds, and testing.

Core Features & Use Cases

  • Paywalls: Implement standard paywalls using StoreView and SubscriptionStoreView to present products and manage purchases.
  • Entitlements & Testing: Leverage Transaction.currentEntitlements and Transaction.updates for real-time entitlement checks and automatic refresh with refunds or revocations.
  • Guided Workflows: Provide end-to-end guidance for offer codes, promotional offers, win-back offers, and server-side validation.

Quick Start

Try integrating StoreKit 2 paywalls by using SubscriptionStoreView or StoreView to load products and verify entitlements.

Frequently Asked Questions about storekit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement StoreKit 2 in-app purchases for SwiftUI apps?

Implement StoreKit 2 in-app purchases in SwiftUI apps by using SubscriptionStoreView or StoreView to present products, verify transactions, and manage entitlements. This approach streamlines the entire purchase workflow including paywalls and restores.

What is the best way to handle entitlements and transaction updates with StoreKit 2?

Handle StoreKit 2 entitlements by relying on currentEntitlements for access checks and Transaction.updates at launch. This ensures real-time entitlement verification and automatically refreshes access when refunds or revocations occur.

Can I use StoreKit 2 to manage promotional offers, win-back offers, and offer codes?

Yes, StoreKit 2 supports managing promotional offers, win-back offers, and offer codes. It provides end-to-end guided workflows for implementing these features, ensuring proper transaction verification before granting access to subscribed content.

Does this StoreKit 2 implementation work with server-side validation for iOS apps?

Yes, this StoreKit 2 implementation provides guidance for server-side validation. It enforces transaction verification before granting entitlements and handles edge cases like refunds and revocations, ensuring secure IAP workflows for iOS 26+ apps.

How do I build paywalls using SubscriptionStoreView in SwiftUI?

Build paywalls in SwiftUI using SubscriptionStoreView or StoreView to load and present products. These native views manage the purchase interface, while the underlying logic verifies transactions and updates currentEntitlements automatically.

Why should I listen to Transaction.updates at launch for in-app purchases?

Listening to Transaction.updates at launch is required to catch background subscription events and verify transactions before granting access. It ensures your app handles refunds, revocations, and promotional offers correctly without missing real-time entitlement changes.