Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paywalls: don't display progress view in LoadingPaywallView #3235

Merged
merged 2 commits into from
Sep 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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