Skip to content

Commit

Permalink
Paywalls: don't display progress view in LoadingPaywallView (#3235)
Browse files Browse the repository at this point in the history
This got broken in #3217.

### Before:
<img width="395" alt="Screenshot 2023-09-20 at 15 45 50"
src="https://github.com/RevenueCat/purchases-ios/assets/685609/831f7aa5-879b-4c2c-8df2-9431f88eea17">

### After:
<img width="402" alt="Screenshot 2023-09-20 at 15 45 22"
src="https://github.com/RevenueCat/purchases-ios/assets/685609/ec1fa671-267c-4128-a449-b43dae352a66">
  • Loading branch information
NachoSoto authored Sep 21, 2023
1 parent 5ba2911 commit 01b8eea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion RevenueCatUI/Views/PurchaseButton.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion Tests/purchases-ios-snapshots-commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
b708628d4ccaf476db8a5a2fcaa6ae3db5a8e1e3
0be5db8adc13ba7763be5d75a1180c5066c423bd

0 comments on commit 01b8eea

Please sign in to comment.