Skip to content

Commit

Permalink
Paywalls: fixed template 4 bottom padding
Browse files Browse the repository at this point in the history
Turns out #3201 broke this. To make sure that `TemplateBackgroundImageView` doesn't affect the layout, I made the main view of the template `footerContent` and instead made the background a pure `.background`.
  • Loading branch information
NachoSoto committed Sep 14, 2023
1 parent 66b5048 commit 40ed33d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions RevenueCatUI/Templates/Template4View.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ struct Template4View: TemplateViewType {
var body: some View {
switch self.configuration.mode {
case .fullScreen:
ZStack(alignment: .bottom) {
TemplateBackgroundImageView(configuration: self.configuration)
VStack {
Spacer()

self.footerContent
.edgesIgnoringSafeArea(.bottom)
Expand All @@ -64,6 +64,9 @@ struct Template4View: TemplateViewType {
edgesIgnoringSafeArea: .bottom)
#endif
}
.background {
TemplateBackgroundImageView(configuration: self.configuration)
}

case .footer, .condensedFooter:
self.footerContent
Expand Down

0 comments on commit 40ed33d

Please sign in to comment.