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 V2] Fix border being hidden by next sibling component #4523

Merged
merged 1 commit into from
Dec 12, 2024

Conversation

joshdholtz
Copy link
Member

@joshdholtz joshdholtz commented Nov 27, 2024

Motivation

There was an issue where a sibiling component would overlap the border and make it look like border didn't exist

Description

Just needed to subtract 1 from the max y

Screenshots

Before After
Simulator Screenshot - iPhone 16 Pro - 2024-11-26 at 20 10 03 Simulator Screenshot - iPhone 16 Pro - 2024-11-26 at 20 11 06

Copy link
Member

@JayShortway JayShortway left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice fix! Just a question.

Comment on lines +182 to +188
#if PAYWALL_COMPONENTS
.onAppear {
if let errorInfo = paywall.offering.paywallComponentsData?.errorInfo {
print("Paywall V2 Error:", errorInfo.debugDescription)
}
}
#endif
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just checking: is this intended?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if intended, but definitely useful, I've added something similar locally in the past to debug paywall errors so I'd keep it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea I agree! Maybe we should use our logger though, instead of a print statement?

@joshdholtz joshdholtz merged commit f6f365b into main Dec 12, 2024
7 checks passed
@joshdholtz joshdholtz deleted the paywalls-v2/fix-border-math branch December 12, 2024 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants