-
Notifications
You must be signed in to change notification settings - Fork 338
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 footer spacing issues #4730
Conversation
@@ -241,15 +241,15 @@ private struct LoadedPaywallsV2View: View { | |||
ComponentsView( | |||
componentViewModels: [paywallState.componentViewModel], | |||
onDismiss: self.onDismiss | |||
) | |||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This gives a lint warning
} | ||
.environmentObject(self.selectedPackageContext) | ||
.frame(maxHeight: .infinity, alignment: .topLeading) | ||
.backgroundStyle( | ||
self.paywallState.componentsConfig.background | ||
.asDisplayable(uiConfigProvider: uiConfigProvider).backgroundStyle | ||
) | ||
.edgesIgnoringSafeArea(.top) | ||
.edgesIgnoringSafeArea(.bottom) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, this makes sense. Having .edgesIgnoringSafeArea(.top)
could mean trouble when the paywall got presented in full cover (where content could go under the status bar)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just have a question... But code seems ok to me!
Motivation
Footer was showing empty space between footer and safe space on the bottom
Description
👇 This is what the
Spacer()
fixes