From 59511e2b808a74896fa24e749203fb1c98d6f7fd Mon Sep 17 00:00:00 2001 From: NachoSoto Date: Wed, 13 Sep 2023 18:20:03 -0700 Subject: [PATCH] `Paywalls`: improved `DebugErrorView` layout (#3204) --- RevenueCatUI/Views/DebugErrorView.swift | 9 +++------ Tests/purchases-ios-snapshots-commit | 2 +- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/RevenueCatUI/Views/DebugErrorView.swift b/RevenueCatUI/Views/DebugErrorView.swift index 74ae139f74..599e2b0e09 100644 --- a/RevenueCatUI/Views/DebugErrorView.swift +++ b/RevenueCatUI/Views/DebugErrorView.swift @@ -56,10 +56,7 @@ struct DebugErrorView: View { case let .replacement(view): #if DEBUG - VStack { - self.errorView - view - } + view.overlay(alignment: .top) { self.errorView } #else view #endif @@ -81,13 +78,13 @@ struct DebugErrorView: 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) diff --git a/Tests/purchases-ios-snapshots-commit b/Tests/purchases-ios-snapshots-commit index 9591fd547b..058932f5ba 100644 --- a/Tests/purchases-ios-snapshots-commit +++ b/Tests/purchases-ios-snapshots-commit @@ -1 +1 @@ -98413211d2d42353a3cc2eb919d63b1db8b423c3 +e70a12d06880c562ec3551b7d9effc9676984418