Documentation

SwiftUI Subscription View

A SwiftUI View for displaying your in-app purchase products, price structure, and the value provides by your premium offerings. Implementation can be customized to your needs, with subscription logic that can be bridged to work with StoreKit, RevenueCat or other in-app purchase solutions.

SubscriptionView with a light color scheme. A SwiftUI Starter Kit Component.
SubscriptionView with a light color scheme.
SubscriptionView with a dark color scheme. A SwiftUI Starter Kit Component.
SubscriptionView with a dark color scheme.

Usage

SubscriptionView(
    model: SubscriptionViewModel(
        controller: MockPurchaseController(delay: 2),
        didFinish: { _ in }
    )
)

Features

  • Customize with feature descriptions and your own pricing structure through SubscriptionSelector.
  • Supports flexible Subscription modeling with localized currency handling.
  • Use alongside PurchaseController to manage user subscriptions and feature gating.
  • Supports light and dark device color schemes by default.
  • Supports font scaling via Dynamic Type.
  • Supports offline usage in SwiftUI Previews for easy debugging and testing.