From 55586553ffecc4cecb1a339ebb041441a27f5fdc Mon Sep 17 00:00:00 2001 From: NachoSoto Date: Wed, 20 Sep 2023 15:44:49 -0700 Subject: [PATCH 1/2] `Paywalls`: don't display progress view in `LoadingPaywallView` This got broken in #3217. --- RevenueCatUI/Views/PurchaseButton.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/RevenueCatUI/Views/PurchaseButton.swift b/RevenueCatUI/Views/PurchaseButton.swift index 44e272a90f..77d4d7ecb2 100644 --- a/RevenueCatUI/Views/PurchaseButton.swift +++ b/RevenueCatUI/Views/PurchaseButton.swift @@ -120,6 +120,9 @@ private struct PurchaseButtonLabel: View { @Environment(\.isEnabled) private var isEnabled + @Environment(\.redactionReasons.isEmpty) + private var isNotRedacted + var body: some View { IntroEligibilityStateView( textWithNoIntroOffer: self.package.localization.callToAction, @@ -136,7 +139,7 @@ private struct PurchaseButtonLabel: View { .padding(.vertical, self.userInterfaceIdiom == .pad ? 10 : 0) .hidden(if: !self.isEnabled) .overlay { - if !self.isEnabled { + if !self.isEnabled && self.isNotRedacted { ProgressView() .progressViewStyle(.circular) .tint(self.colors.callToActionForegroundColor) From 0843cedc21f81d6e4eccf3fe1f142f8dd7f80c87 Mon Sep 17 00:00:00 2001 From: NachoSoto Date: Wed, 20 Sep 2023 16:26:45 -0700 Subject: [PATCH 2/2] Update snapshots --- Tests/purchases-ios-snapshots-commit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/purchases-ios-snapshots-commit b/Tests/purchases-ios-snapshots-commit index 654e6b7123..0f58813479 100644 --- a/Tests/purchases-ios-snapshots-commit +++ b/Tests/purchases-ios-snapshots-commit @@ -1 +1 @@ -b708628d4ccaf476db8a5a2fcaa6ae3db5a8e1e3 +0be5db8adc13ba7763be5d75a1180c5066c423bd