Skip to content

Commit

Permalink
Fixed background color with non-white backgrounds
Browse files Browse the repository at this point in the history
  • Loading branch information
NachoSoto committed Jul 21, 2023
1 parent 96b2297 commit 8348c66
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions RevenueCatUI/Templates/TemplateViewType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,13 @@ extension PaywallData {
case let .success(configuration):
Self.createView(template: self.template, configuration: configuration)
.background(
mode.shouldDisplayBackground
? configuration.colors.backgroundColor
: nil
Rectangle()
.foregroundColor(
mode.shouldDisplayBackground
? configuration.colors.backgroundColor
: nil
)
.edgesIgnoringSafeArea(.all)
)

case let .failure(error):
Expand Down

0 comments on commit 8348c66

Please sign in to comment.