|
|
@@ -379,7 +379,14 @@ struct PremiumFeaturesView: View {
|
|
|
.disabled(premiumStore.restoreInProgress || premiumStore.purchaseInProgress)
|
|
|
}
|
|
|
} else {
|
|
|
- continueWithFreeButton
|
|
|
+ HStack {
|
|
|
+ continueWithFreeButton
|
|
|
+ Spacer()
|
|
|
+ footerActionButton(premiumStore.restoreInProgress ? "Restoring…" : "Restore Purchase") {
|
|
|
+ Task { await premiumStore.restorePurchases() }
|
|
|
+ }
|
|
|
+ .disabled(premiumStore.restoreInProgress || premiumStore.purchaseInProgress)
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
HStack {
|
|
|
@@ -414,6 +421,11 @@ struct PremiumFeaturesView: View {
|
|
|
} else {
|
|
|
footerActionButton("Continue with Free") { dismissPremiumUI() }
|
|
|
Spacer(minLength: 18)
|
|
|
+ footerActionButton(premiumStore.restoreInProgress ? "Restoring…" : "Restore Purchase") {
|
|
|
+ Task { await premiumStore.restorePurchases() }
|
|
|
+ }
|
|
|
+ .disabled(premiumStore.restoreInProgress || premiumStore.purchaseInProgress)
|
|
|
+ Spacer(minLength: 18)
|
|
|
}
|
|
|
footerActionButton("Privacy Policy") { openExternalPage(ExternalPage.privacy) }
|
|
|
Spacer(minLength: 18)
|