Skip to content

Commit

Permalink
Paywalls: improved DebugErrorView layout
Browse files Browse the repository at this point in the history
This became slightly broken after #3201.

### Before:

### After:
  • Loading branch information
NachoSoto committed Sep 14, 2023
1 parent dbc7710 commit 6e0a317
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions RevenueCatUI/Views/DebugErrorView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,7 @@ struct DebugErrorView<Content: View>: View {

case let .replacement(view):
#if DEBUG
VStack {
self.errorView
view
}
view.overlay(alignment: .top) { self.errorView }
#else
view
#endif
Expand All @@ -81,13 +78,13 @@ struct DebugErrorView<Content: View>: View {
Text(self.description)
.unredacted()
.padding()
.fixedSize(horizontal: false, vertical: false)
.fixedSize(horizontal: true, vertical: false)
.background(
Color.red
.edgesIgnoringSafeArea(.all)
)
.foregroundColor(.white)
.font(.body.bold())
.font(.caption.bold())
.minimumScaleFactor(0.5)
.cornerRadius(8)
.shadow(radius: 8)
Expand Down

0 comments on commit 6e0a317

Please sign in to comment.