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.
Usage
(
SubscriptionView: SubscriptionViewModel(
model: MockPurchaseController(delay: 2),
controller: { _ in }
didFinish)
)
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.