NewThe Flutter Kit — Flutter boilerplate$149$69
Integration · Pre-Wired · Production Code

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.

Last updated: 2026-05-16 6 min read By Ahmed Gagan, iOS Engineer
Quick Answer

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.

Integration
Pre-wired in Swift Kit
Code to write
0 lines (paste API key)
Paywall
Native SwiftUI + design system
RevenueCat pricing
Free under $2.5k MTR

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:

Secrets.swift
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:

PremiumGatedView.swift
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.

Get The Swift Kit — $99

Frequently Asked Questions

How does The Swift Kit integrate with RevenueCat?
The Swift Kit ships RevenueCat fully pre-wired: PurchasesDelegate is configured, the customer info stream is bound to an @Observable subscription model, the paywall reads RevenueCat's current offerings, and restore-purchases / trial-logic / receipt-validation all work out of the box. You paste your RevenueCat API key in Secrets.swift (or via the setup CLI) and the entire subscription system works.
Do I need to write any RevenueCat code?
For the standard flow: no. The included subscription model, paywall view, and gating logic cover the 90% case. Add custom logic only for non-standard flows (e.g., gifting, transfer between devices, custom offer ramps). When you do, the patterns are clear because the boilerplate code follows RevenueCat's documented best practices.
What's included in the paywall template?
A production-ready SwiftUI paywall with: dynamic offering rendering, monthly/annual toggle, trial badge handling, subscription terms link, restore-purchases button, feature comparison list, and a dismiss flow. Themed via the design system — change one token in DesignSystem.swift and the paywall recolors.
Does it work with RevenueCat Paywall Builder?
Yes — the Swift Kit's native SwiftUI paywall is the default, but you can swap in RevenueCat's hosted Paywall Builder views with a single line change. Use Paywall Builder for rapid A/B testing without code releases.
Does it support family sharing and promotional offers?
Yes. RevenueCat handles family sharing and promotional offers natively, and the Swift Kit's subscription state respects both. The paywall UI shows family-sharing badges when relevant.
How much does RevenueCat cost?
Free under $2,500 MTR (Monthly Tracked Revenue). 1% of revenue between $2.5k–$10M MTR, then a sliding scale. For an indie app doing $1k–$10k MRR, RevenueCat costs $0–$120/mo. Most apps pay nothing until they're profitable.

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 — $99

One-time purchase · Lifetime updates · 14-day refund