Releases: FlineDev/FreemiumKit
Releases · FlineDev/FreemiumKit
1.13.0
- Deprecates
FreemiumKit.preview
in favor ofFreemiumKit.shared
everywhere, which now also works in SwiftUI Previews - Adds support for seeing your actual paywall in SwiftUI Previews, but 2 steps are needed:
- Press the 'Save Changes to Remote' button in the latest version of FreemiumKit (requires
1.2.2
or later) - Drag & drop your config file in the 'Setup' tab to your
Preview Assets.xcassets
folder (in addition toAssets.xcassets
)
- Press the 'Save Changes to Remote' button in the latest version of FreemiumKit (requires
1.12.1
1.12.0
-
Added
freeIf
parameter toPaidFeatureButton
&PaidFeatureView
for freemium features with usage limitsExample usage with
PaidFeatureButton
:// Let users export 3 PDFs for free, then require subscription // - Shows normal button while free exports remain // - Shows locked button & paywall after limit reached PaidFeatureButton( "Export PDF", systemImage: "doc.pdf", freeIf: { remainingFreeExports > 0 } ) { exportPDF() remainingFreeExports -= 1 }
Example usage with
PaidFeatureView
:PaidFeatureView(freeIf: { usedPremiumContents.count < freeUsageLimit }) { Text("Premium Content") // Shown when subscribed or free condition is met } lockedView: { Label("Get Premium Content", systemImage: "lock") // Shown when locked }
1.11.0
- Adds support for dynamically controlling which tiers should be shown in the paywall by providing a
showTierInPaywall
closure. Learn More
1.10.2
1.10.1
1.10.0
1.9.2
1.9.1
1.9.0
Adds a new legacyProductsIDsByTier
parameter you can set on FreemiumKit.shared
upon app start if you have legacy products on App Store Connect that are no longer part of your paywall, to maintain access for existing customers. This is only needed if you historically had a different set of subscriptions/lifetime purchases and created new ones at a later time. If all your products you ever released are currently on your paywall, you don't need this.