Comments (3)
notice: apple web docs is wrong. https://developer.apple.com/documentation/storekit/skproductsubscriptionperiod/2936876-numberofunits
subscription.subscription?.subscriptionPeriod.numberOfUnits
Value of type 'Product.SubscriptionPeriod' has no member 'numberOfUnits'
should use:
subscription.subscription?.subscriptionPeriod.value
PurchaseButton(purchaseState: $purchaseState, productId: productId, price: subscription.displayPrice + " / " + period)
self.period = subscription.subscription?.subscriptionPeriod.unit.localizedDescription ?? ""
let periodValue = subscription.subscription?.subscriptionPeriod.value ?? 1
if periodValue != 1 {
// TODO Month to Months
self.period = String(periodValue) + " " + self.period
}
from storehelper.
Excellent suggestion! It looks much better when the period is shown on the button. I'll implement your idea as a configurable option (so as not to break exisiting code)
from storehelper.
Completed. See User Guide subscriptions section for more details on prices and preiods, plus subscription promotional and introductory offers.
from storehelper.
Related Issues (20)
- TermsOfServiceView is not using the config overrides HOT 2
- Would you mind adding a small demo for using this with AppKit/macOS or UIKit/iOS? HOT 1
- Revocation not handled properly HOT 2
- Xcode Reports missing update task? HOT 2
- An issue that unconditionally returns true in shouldAddStorePayment method HOT 8
- Compile error: Configuration has no member named "value" HOT 1
- Subscription group HOT 3
- Do we have any idea on the next release HOT 1
- Missing repository reference HOT 3
- Missing products in production ready app HOT 3
- Certificate issue on device HOT 4
- Subscriptions renewed when the MacOS app was closed are not picked up by Storekit2 HOT 10
- How to implement custom transaction handler HOT 3
- Compile Issue HOT 1
- Cancellation not detected HOT 5
- Question about using StoreHelper in Safari Extension project HOT 3
- Auto-renew subscription eligibility HOT 1
- "Writerly" hard-coded into StoreHelper HOT 1
- Can I use this without having the local Product.plist configuration file? HOT 1
- Log clashes for different transactions due to missing transactionID in TransactionLog HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from storehelper.