StoreKit
Sell In-App Purchases and subscriptions, and talk to the App Store from your app.
Introduced
2009
iPhone OS 3
Kind
Framework
Runs on
Get it from
iOS
3.0+
iPadOS
3.0+
Mac Catalyst
13.0+
macOS
10.7+
tvOS
9.0+
visionOS
1.0+
watchOS
6.2+
A complete subscription store from one view. Prices come from App Store Connect.
Overview
StoreKit powers Apple In-App Purchase: products, subscriptions and offers, with transactions signed by the App Store. Ready-made SwiftUI views like SubscriptionStoreView build a complete store in a few lines.
It also requests reviews, shows App Store messages, verifies app purchases and recommends other apps.
StoreKit views
A full store in SwiftUI with a few lines.
Signed transactions
Verify purchases on device or on your server.
Offers
Introductory, promotional, win-back and offer codes.
Testing
Test purchases in Xcode without App Store Connect.
ProStore.swift
import StoreKit
import SwiftUI
struct ProStore: View {
var body: some View {
SubscriptionStoreView(groupID: "21482915") {
VStack {
Text("Cupertino Pro").font(.largeTitle.bold())
Text("Every framework, every session.")
}
}
.subscriptionStoreControlStyle(.prominentPicker)
}
}
History
How it grew up.
2009
In-App Purchase
Arrives with iPhone OS 3.
2021
StoreKit 2
A modern Swift API with signed transactions.
2023
StoreKit views
Build stores in SwiftUI.
2026
Group subscriptions
Offer subscriptions to groups and organizations.