Skip to content

Commit

Permalink
Paywalls: improved DebugErrorView layout (#3204)
Browse files Browse the repository at this point in the history
  • Loading branch information
NachoSoto authored Sep 14, 2023
1 parent 44f5cf4 commit 59511e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 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
2 changes: 1 addition & 1 deletion Tests/purchases-ios-snapshots-commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
98413211d2d42353a3cc2eb919d63b1db8b423c3
e70a12d06880c562ec3551b7d9effc9676984418

0 comments on commit 59511e2

Please sign in to comment.