Skip to content

Instantly share code, notes, and snippets.

@laevandus
Created January 14, 2024 11:57
Show Gist options
  • Save laevandus/af661352a9246ad8c8ce0e3bf33186ac to your computer and use it in GitHub Desktop.
Save laevandus/af661352a9246ad8c8ce0e3bf33186ac to your computer and use it in GitHub Desktop.
struct SubscriptionsView: View {
var body: some View {
SubscriptionStoreView(productIDs: Subscriptions.subscriptionIDs) {
VStack {
VStack(spacing: 8) {
Image(systemName: "graduationcap.fill")
.resizable()
.scaledToFill()
.frame(width: 96, height: 96)
.foregroundStyle(Color.brown)
Text("Premium Access")
.font(.largeTitle)
Text("Unlock premium access for enabling **X** and **Y**.")
.multilineTextAlignment(.center)
}
.padding()
}
}
.subscriptionStorePolicyDestination(url: AppConstants.URLs.privacyPolicy, for: .privacyPolicy)
.subscriptionStorePolicyDestination(url: AppConstants.URLs.termsOfUse, for: .termsOfService)
.subscriptionStoreButtonLabel(.multiline)
.storeButton(.visible, for: .restorePurchases)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment