RevenueCat + The Swift Kit — Subscription Paywall, Pre-Wired
The Swift Kit ships RevenueCat fully integrated — paywall UI, subscription state, trial logic, restore-purchases, all wired to the design system. Paste your API key and ship.
The Swift Kit ships with RevenueCat pre-integrated end-to-end: the PurchasesDelegate is configured, customer info flows into an @Observable subscription model, the paywall reads RevenueCat offerings dynamically, and restore-purchases / trial-logic / receipt-validation all work without writing any setup code. Drop your RevenueCat API key into Secrets.swift, build, and the subscription system is live. No boilerplate code to write.
What's Pre-Wired
The Swift Kit ships these RevenueCat-related capabilities ready to use:
- Purchases.configure() during app launch — reads API key from Secrets.swift
- @Observable SubscriptionModel listens to PurchasesDelegate updates
- Native SwiftUI paywall view, themed via DesignSystem.swift
- Dynamic offering rendering — paywall reflects RevenueCat dashboard changes
- Trial badge, monthly/annual toggle, restore-purchases button
- Feature gating helpers — `if subscriptionModel.isPremium { ... }`
- Custom paywall hooks for A/B testing via Superwall (optional)
- Family sharing detection
- Promotional offer rendering
Setup in 60 Seconds
After cloning Swift Kit:
enum Secrets {
static let revenueCatAPIKey = "appl_xxxxxxxxxxxxx" // ← paste here
// ...rest of your keys
}Reading Subscription State Anywhere
The subscription model is in the environment. Any view can read it:
struct PremiumGatedView: View {
@Environment(SubscriptionModel.self) var subscription
@State private var showPaywall = false
var body: some View {
if subscription.isPremium {
// Premium content
AdvancedFeatureView()
} else {
Button("Unlock Premium") { showPaywall = true }
.sheet(isPresented: $showPaywall) {
PaywallView()
}
}
}
}Why Use RevenueCat Instead of Raw StoreKit 2
StoreKit 2 is excellent — but RevenueCat solves five problems StoreKit 2 doesn't:
- Server-side receipt validation without running a backend
- Cross-platform subscriber identity (iOS + Android + web)
- Promotional offer / win-back campaign management
- Built-in A/B testing of pricing and offers
- Subscription analytics + churn cohorts out of the box
Skip the paywall plumbing.
The Swift Kit ships RevenueCat + paywall + design system, ready to compile. $99 one-time.
Frequently Asked Questions
How does The Swift Kit integrate with RevenueCat?
Do I need to write any RevenueCat code?
What's included in the paywall template?
Does it work with RevenueCat Paywall Builder?
Does it support family sharing and promotional offers?
How much does RevenueCat cost?
Keep exploring
Ship your iOS app 10× faster
The Swift Kit gives you a production-ready SwiftUI boilerplate — design system, paywall, auth, AI, all pre-wired. $99 one-time.
Get The Swift Kit — $99One-time purchase · Lifetime updates · 14-day refund